Skip to content

Toggling Feature Flags through SDK's #2882

Answered by ivarconr
Aethen22 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi there, the SDK is only supposed to be used to consume feature toggle, and evaluate their status for a given context.

Unleash do however document the full Admin API with Open API and it should be fairly simple to call the API directly (or generate a client based on the specification).

E.g. to enable a toggle in an environment you can simply POST to the toggleFeatureEnvironmentOn action on the features API:

POST /api/admin/projects/:projectId/features/:featureName/environments/:environment/on

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Aethen22
Comment options

Answer selected by Aethen22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants