Update a flag trigger. Updating a flag trigger 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 flag triggers.
Removes the existing trigger action and replaces it with the new instructions.
value
: An array of the new kind
s of actions to perform when triggering. Supported flag actions are turnFlagOn
and turnFlagOff
.Here’s an example that replaces the existing action with new instructions to turn flag targeting off:
Generates a new URL for this trigger. You must update any clients using the trigger to use this new URL.
Here’s an example:
Disables the trigger. This saves the trigger configuration, but the trigger stops running. To re-enable, use enableTrigger
.
Here’s an example:
Enables the trigger. If you previously disabled the trigger, it begins running again.
Here’s an example:
The project key
The environment key
The feature flag key
The flag trigger ID
Optional comment describing the update
The instructions to perform when updating. This should be an array with objects that look like <code>{“kind”: “trigger_action”}</code>.
Flag trigger response
The ID of this flag trigger
The flag trigger version
Timestamp of when the flag trigger was created
The ID of the flag trigger maintainer
Details on the member who maintains this flag trigger
Whether the flag trigger is currently enabled
The unique identifier of the integration for your trigger
Details on the action to perform when triggering
Timestamp of when the trigger was most recently executed
Details on recent flag trigger requests.
Number of times the trigger has been executed
The unguessable URL for this flag trigger
The location and content type of related resources