Set an override
Fixes the flag on or off for one end user, {identityType}:{identityValue} in the path, in an environment, optionally in one variant by its variantKey, whatever the rules say.
Replaces the end user's override there, answering 201 when there was none. In test it gives test a configuration of its own, started from production's. Works on an experiment's flag in production, to put a tester in an arm.
Guide: Feature flags and A/B tests
Errors
| Status | type | code | When |
|---|---|---|---|
| 400 | invalid_request | unknown_variant | When the flag has no such variant. |
| 400 | invalid_request | variant_requires_enabled | For a variant with isEnabled: false. |
| 409 | conflict | feature_flag_managed_by_experiment | For an experiment's flag in test. |
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 - 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 - 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.