Update flag settings for context

PUT
/api/v2/projects/:projectKey/environments/:environmentKey/contexts/:contextKind/:contextKey/flags/:featureFlagKey

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

projectKeystringRequired

The project key

environmentKeystringRequired

The environment key

contextKindstringRequired

The context kind

contextKeystringRequired

The context key

featureFlagKeystringRequired

The feature flag key

Request

This endpoint expects an object.
settinganyOptional
commentstringOptional

Optional comment describing the change

Response

Action succeeded

{}
map from strings to any or null

Errors

Built with