For the complete documentation index, see llms.txt. For the full documentation snapshot, see llms-full.txt.
Perform a partial update to multiple teams. Updating teams 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 teams.
Add the members to teams.
memberIDs: List of member IDs to add.teamKeys: List of teams to update.Here’s an example:
{
"instructions": [{
"kind": "addMembersToTeams",
"memberIDs": [
"1234a56b7c89d012345e678f"
],
"teamKeys": [
"example-team-1",
"example-team-2"
]
}]
}
Add all members to the team. Members that match any of the filters are excluded from the update.
teamKeys: List of teams to update.filterLastSeen: (Optional) A JSON object with one of the following formats:
{"never": true} - Members that have never been active, such as those who have not accepted their invitation to LaunchDarkly, or have not logged in after being provisioned via SCIM.{"noData": true} - Members that have not been active since LaunchDarkly began recording last seen timestamps.{"before": 1608672063611} - Members that have not been active since the provided value, which should be a timestamp in Unix epoch milliseconds.filterQuery: (Optional) A string that matches against the members’ emails and names. It is not case sensitive.filterRoles: (Optional) A | separated list of roles and custom roles. For the purposes of this filtering, Owner counts as Admin.filterTeamKey: (Optional) A string that matches against the key of the team the members belong to. It is not case sensitive.ignoredMemberIDs: (Optional) A list of member IDs.Here’s an example:
{
"instructions": [{
"kind": "addAllMembersToTeams",
"teamKeys": [
"example-team-1",
"example-team-2"
],
"filterLastSeen": { "never": true }
}]
}
curl --request PATCH \
--url https://app.launchdarkly.com/api/v2/teams \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"comment": "Optional comment about the update",
"instructions": [
{
"kind": "addMembersToTeams",
"memberIDs": [
"1234a56b7c89d012345e678f"
],
"teamKeys": [
"example-team-1",
"example-team-2"
]
}
]
}
'{
"memberIDs": [
"1234a56b7c89d012345e678f"
],
"teamKeys": [
"example-team-1"
],
"errors": [
{
"example-team-2": "example failure message"
}
]
}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 instructions to perform when updating. This should be an array with objects that look like {"kind": "update_action"}. Some instructions also require additional parameters as part of this object.
Show child attributes
"[ { \"kind\": \"updateDescription\", \"value\": \"New description for the team\" } ]"
Optional comment describing the update
"Optional comment about the update"
Teams response
A list of member IDs of the members who were added to the teams.
["1234a56b7c89d012345e678f"]A list of team keys of the teams that were successfully updated.
["example-team-1"]A list of team keys and errors for the teams whose updates failed.
Show child attributes
[
{
"example-team-2": "example failure message"
}
]curl --request PATCH \
--url https://app.launchdarkly.com/api/v2/teams \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"comment": "Optional comment about the update",
"instructions": [
{
"kind": "addMembersToTeams",
"memberIDs": [
"1234a56b7c89d012345e678f"
],
"teamKeys": [
"example-team-1",
"example-team-2"
]
}
]
}
'{
"memberIDs": [
"1234a56b7c89d012345e678f"
],
"teamKeys": [
"example-team-1"
],
"errors": [
{
"example-team-2": "example failure message"
}
]
}