toggle_flag_environment
Enable or disable a feature flag in a specific environment. Use set_flag_rollout to configure gradual rollout strategies.
Instructions
Enable or disable a feature flag in a specific environment using the Unleash Admin API. For gradual rollouts, configure a flexibleRollout strategy first via set_flag_rollout.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectId | No | Project ID where the feature flag resides (optional if UNLEASH_DEFAULT_PROJECT is set) | |
| featureName | Yes | Feature flag name | |
| environment | Yes | Environment to toggle | |
| enabled | Yes | Set to true to enable the flag, or false to disable it |