toggle_flag_environment
Enable or disable a feature flag in a specific environment to control its state for that deployment context.
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 |
|---|---|---|---|
| enabled | Yes | Set to true to enable the flag, or false to disable it | |
| projectId | No | Project ID where the feature flag resides (optional if UNLEASH_DEFAULT_PROJECT is set) | |
| environment | Yes | Environment to toggle | |
| featureName | Yes | Feature flag name |