For the complete documentation index, see llms.txt. For the full documentation snapshot, see llms-full.txt.
Update a scheduled change, overriding existing instructions with the new ones. Updating a scheduled change 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 scheduled changes.
Removes the scheduled change.
Here’s an example:
{
"instructions": [{ "kind": "deleteScheduledChange" }]
}
Removes the existing scheduled changes and replaces them with the new instructions.
value: An array of the new actions to perform when the execution date for these scheduled changes arrives. Supported scheduled actions are turnFlagOn and turnFlagOff.Here’s an example that replaces the scheduled changes with new instructions to turn flag targeting off:
{
"instructions": [
{
"kind": "replaceScheduledChangesInstructions",
"value": [ {"kind": "turnFlagOff"} ]
}
]
}
Updates the execution date for the scheduled changes.
value: the new execution date, in Unix milliseconds.Here’s an example:
{
"instructions": [
{
"kind": "updateScheduledChangesExecutionDate",
"value": 1754092860000
}
]
}
curl --request PATCH \
--url https://app.launchdarkly.com/api/v2/projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/scheduled-changes/{id} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"comment": "Optional comment describing the update to the scheduled changes",
"instructions": [
{
"kind": "replaceScheduledChangesInstructions",
"value": [
{
"kind": "turnFlagOff"
}
]
}
]
}
'{
"_id": "12ab3c45de678910abc12345",
"_creationDate": "1654123897062",
"_maintainerId": "12ab3c45de678910abc12345",
"_version": 1,
"executionDate": "1636558831870",
"instructions": "[ { \"kind\": \"turnFlagOn\" }]",
"conflicts": "<unknown>",
"_links": {}
}Documentation Index
Fetch the complete documentation index at: https://launchdarkly-preview.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
The project key
The feature flag key
The environment key
The scheduled change ID
Whether to succeed (true) or fail (false) when these new instructions conflict with existing scheduled changes
The instructions to perform when updating. This should be an array with objects that look like {"kind": "update_action"}. Some instructions also require a value field in the array element.
Show child attributes
"[ { \"kind\": \"replaceScheduledChangesInstructions\", \"value\": [ { \"kind\": \"turnFlagOff\" } ] } ]"
Optional comment describing the update to the scheduled changes
"optional comment"
Scheduled changes response
The ID of this scheduled change
"12ab3c45de678910abc12345"
Timestamp of when the scheduled change was created
"1654123897062"
The ID of the scheduled change maintainer
"12ab3c45de678910abc12345"
Version of the scheduled change
1
When the scheduled changes should be executed
"1636558831870"
The actions to perform on the execution date for these scheduled changes
Show child attributes
"[ { \"kind\": \"turnFlagOn\" }]"
Details on any conflicting scheduled changes
The location and content type of related resources
Show child attributes
curl --request PATCH \
--url https://app.launchdarkly.com/api/v2/projects/{projectKey}/flags/{featureFlagKey}/environments/{environmentKey}/scheduled-changes/{id} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"comment": "Optional comment describing the update to the scheduled changes",
"instructions": [
{
"kind": "replaceScheduledChangesInstructions",
"value": [
{
"kind": "turnFlagOff"
}
]
}
]
}
'{
"_id": "12ab3c45de678910abc12345",
"_creationDate": "1654123897062",
"_maintainerId": "12ab3c45de678910abc12345",
"_version": 1,
"executionDate": "1636558831870",
"instructions": "[ { \"kind\": \"turnFlagOn\" }]",
"conflicts": "<unknown>",
"_links": {}
}