-
Hello there, kind of a newbie in CI/CD territory and i've been testing Unleash, both on K8's and docker, and i didnt see any way to change the state of a Feature Toggle(from enabled to disabled or viceversa), so the question is, is there a way without using a third-party application? like maybe the API or some hidden function in the SDK's(Specifically python)? Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
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:
|
Beta Was this translation helpful? Give feedback.
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: