Update flag settings for context
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.
Path parameters
projectKey
The project key
environmentKey
The environment key
contextKind
The context kind
contextKey
The context key
featureFlagKey
The feature flag key
Headers
Authorization
Request
This endpoint expects an object.
setting
comment
Optional comment describing the change
Response
Action succeeded