Create feature flag
create_flagCreate a feature flag in a project across all environments (initially disabled). Supports Boolean, String, Number, and Json types, with automatic true/false variations for Boolean and optional custom variations for other types.
Instructions
Create a feature flag. type is one of Boolean|String|Number|Json. Boolean flags get true/false variations automatically; for other types pass initialVariations. The flag is created in every environment of the project (disabled).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Unique flag key, e.g. checkout-v2 | |
| name | Yes | ||
| tags | No | ||
| type | Yes | ||
| project | Yes | Project key | |
| description | No | ||
| idempotency_key | No | Idempotency-Key header for safe retries | |
| clientSideVisible | No | Expose to client-side SDKs (browser/mobile) | |
| initialVariations | No |