Contexts are now available
After you have upgraded your LaunchDarkly SDK to use contexts instead of users, you should use Update expiring context targets on feature flag instead of this endpoint. To learn more, read Contexts.
Schedule a target for removal from individual targeting on a feature flag. The flag must already serve a variation to specific targets based on their key.
You can add, update, or remove a scheduled removal date. You can only schedule a target for removal on a single variation per flag.
Updating an expiring target uses the semantic patch format. To make a semantic patch request, you must append domain-model=launchdarkly.semanticpatch
to your Content-Type
header. To learn more, read Updates using semantic patch.
Semantic patch requests support the following kind
instructions for updating expiring user targets.
Adds a date and time that LaunchDarkly will remove the user from the flag’s individual targeting.
value
: The time, in Unix milliseconds, when LaunchDarkly should remove the user from individual targeting for this flagvariationId
: ID of a variation on the flaguserKey
: The user key for the user to remove from individual targetingUpdates the date and time that LaunchDarkly will remove the user from the flag’s individual targeting.
value
: The time, in Unix milliseconds, when LaunchDarkly should remove the user from individual targeting for this flagvariationId
: ID of a variation on the flaguserKey
: The user key for the user to remove from individual targetingversion
: (Optional) The version of the expiring user target to update. If included, update will fail if version doesn’t match current version of the expiring user target.Removes the scheduled removal of the user from the flag’s individual targeting. The user will remain part of the flag’s individual targeting until you explicitly remove them, or until you schedule another removal.
variationId
: ID of a variation on the flaguserKey
: The user key for the user to remove from individual targetingThe project key
The environment key
The feature flag key
The instructions to perform when updating
Optional comment describing the change
Expiring user target response
An array of expiring user targets
The location and content type of related resources
The total count of instructions sent in the PATCH request
The total count of successful instructions sent in the PATCH request
The total count of the failed instructions sent in the PATCH request
An array of error messages for the failed instructions