Schedule a context for removal from individual targeting on a feature flag. The flag must already individually target the context.
You can add, update, or remove a scheduled removal date. You can only schedule a context 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 targets.
Adds a date and time that LaunchDarkly will remove the context from the flag’s individual targeting.
value
: The time, in Unix milliseconds, when LaunchDarkly should remove the context from individual targeting for this flagvariationId
: ID of a variation on the flagcontextKey
: The context key for the context to remove from individual targetingcontextKind
: The kind of context represented by the contextKey
Here’s an example:
Updates the date and time that LaunchDarkly will remove the context from the flag’s individual targeting
value
: The time, in Unix milliseconds, when LaunchDarkly should remove the context from individual targeting for this flagvariationId
: ID of a variation on the flagcontextKey
: The context key for the context to remove from individual targetingcontextKind
: The kind of context represented by the contextKey
version
: (Optional) The version of the expiring target to update. If included, update will fail if version doesn’t match current version of the expiring target.Here’s an example:
Removes the scheduled removal of the context from the flag’s individual targeting. The context will remain part of the flag’s individual targeting until you explicitly remove it, or until you schedule another removal.
variationId
: ID of a variation on the flagcontextKey
: The context key for the context to remove from individual targetingcontextKind
: The kind of context represented by the contextKey
Here’s an example:
The project key
The environment key
The feature flag key
The instructions to perform when updating
Optional comment describing the change
Expiring target response
A list of the results from each instruction
The location and content type of related resources