Update flag settings for user
Enable or disable a feature flag for a user based on their key.
Omitting the `setting` attribute from the request body, or including a `setting` of `null`, erases the current setting for a user.
If you previously patched the flag, and the patch included the user's data, LaunchDarkly continues to use that data. If LaunchDarkly has never encountered the user's key before, it calculates the flag values based on the user key alone.
Authentication
Authorizationstring
API Key authentication via header
Path parameters
projectKey
The project key
environmentKey
The environment key
userKey
The user key
featureFlagKey
The feature flag key
Request
This endpoint expects an object.
setting
The variation value to set for the context. Must match the flag's variation type.
comment
Optional comment describing the change
Response
Action succeeded
Errors
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
429
Too Many Requests Error