Skip to main content
PATCH
/
api
/
v2
/
members
Modify account members
curl --request PATCH \
  --url https://app.launchdarkly.com/api/v2/members \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "comment": "Optional comment about the update",
  "instructions": [
    {
      "kind": "replaceMembersRoles",
      "memberIDs": [
        "1234a56b7c89d012345e678f",
        "507f1f77bcf86cd799439011"
      ],
      "value": "reader"
    }
  ]
}
'
{
  "members": [
    "1234a56b7c89d012345e678f"
  ],
  "errors": [
    {
      "507f1f77bcf86cd799439011": "you cannot modify your own role"
    }
  ]
}

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\": \"replaceMembersRoles\", \"value\": \"reader\" } ]"

comment
string

Optional comment describing the update

Example:

"Optional comment about the update"

Response

Members response

members
string[]

A list of members IDs of the members who were successfully updated.

Example:
["1234a56b7c89d012345e678f"]
errors
object[]

A list of member IDs and errors for the members whose updates failed.

Example:
[
{
"507f1f77bcf86cd799439011": "you cannot modify your own role"
}
]