Skip to main content
PATCH
/
api
/
v2
/
teams
Update teams
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.

Authorizations

Authorization
string
header
required

Body

application/json
instructions
object[]
required

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.

Example:

"[ { \"kind\": \"updateDescription\", \"value\": \"New description for the team\" } ]"

comment
string

Optional comment describing the update

Example:

"Optional comment about the update"

Response

Teams response

memberIDs
string[]

A list of member IDs of the members who were added to the teams.

Example:
["1234a56b7c89d012345e678f"]
teamKeys
string[]

A list of team keys of the teams that were successfully updated.

Example:
["example-team-1"]
errors
object[]

A list of team keys and errors for the teams whose updates failed.

Example:
[
{
"example-team-2": "example failure message"
}
]