Replace a flag's variants
Replaces the flag's variants with the ones given and answers all of them.
Name an existing variant's id to keep it, so end users in it stay there; variants left out are removed, and traffic splits evenly.
Guide: Feature flags and A/B tests
Errors
| Status | type | code | When |
|---|---|---|---|
| 400 | invalid_request | invalid_variants | When values do not match the flag's type or an id is not one of its variants. |
| 409 | conflict | feature_flag_managed_by_experiment | For an experiment's flag; set an experiment's arms through the experiment. |
It can also fail with the errors every operation shares, such as unauthenticated; see Errors.
More in Feature flags
- List feature flags
GET - Create a feature flag
POST - 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 - List a flag's overrides
GET - Set an override
PUT - Remove an override
DELETE - List an end user's overrides
GET - List a flag's targets
GET - Add a target
PUT - Remove a target
DELETE
Something wrong or missing on this page? Tell us by email or on Discord.