Create a feature flag
Creates a flag, switched off and serving nobody in production, with test following production.
A string, number or json flag takes variants whose values match its type; a boolean flag has none.
Guide: Feature flags and A/B tests
Errors
| Status | type | code | When |
|---|---|---|---|
| 400 | invalid_request | invalid_variants | When they do not fit. |
| 409 | conflict | feature_flag_key_taken | When another flag, archived or not, uses the key. |
It can also fail with the errors every operation shares, such as unauthenticated; see Errors.
More in Feature flags
- List feature flags
GET - Evaluate flags for an end user
POST - Retrieve a feature flag
GET - Update a feature flag
PATCH - Archive a feature flag
POST - Unarchive a feature flag
POST - List a flag's variants
GET - Replace a flag's variants
PUT - Set who gets a flag in an environment
PUT - Make test follow production
DELETE - List a flag's overrides
GET - Set an override
PUT - Remove an override
DELETE - List an end user's overrides
GET
Something wrong or missing on this page? Tell us by email or on Discord.