Update flag environment config
update_flag_environment_configConfigure how a feature flag serves in a specific environment by setting its default variation, strategy, and prerequisite flags.
Instructions
Update a flag's per-environment serving config: defaultVariationId (served on fallthrough, required), strategy (SingleVariation | PercentageRollout | TargetedRollout — only SingleVariation is currently supported at the environment level), and prerequisites. Percentage rollouts are configured on targeting rules via update_targeting.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flag | Yes | ||
| project | Yes | ||
| strategy | No | ||
| environment | Yes | ||
| prerequisites | No | Flags that must evaluate to the expected variation before this flag serves. Omit to leave existing prerequisites untouched; pass a list (possibly empty) to replace them wholesale. | |
| defaultVariationId | Yes | Variation id to serve on fallthrough — required by the API |