This feature is in beta
To use this feature, pass in a header including the
LD-API-Version
key with value set tobeta
. Use this header with each call. To learn more, read Beta resources.Resources that are in beta are still undergoing testing and development. They may change without notice, including becoming backwards incompatible.
Enable or disable a feature flag for a context based on its context kind and key.
Omitting the setting
attribute from the request body, or including a setting
of null
, erases the current setting for a context.
If you previously patched the flag, and the patch included the context's data, LaunchDarkly continues to use that data. If LaunchDarkly has never encountered the combination of the context's key and kind before, it calculates the flag values based on the context kind and key.
Action succeeded
Invalid request
Invalid access token
Forbidden
Invalid resource identifier
Rate limited
{- "setting": "existing_variation_value_to_use",
- "comment": "make sure this context experiences a specific variation"
}
{- "code": "invalid_request",
- "message": "Invalid request body"
}