PATCH
/
v1
/
orgs
/
{org_id}
/
members
curl --request PATCH \
  --url https://api.bland.ai/v1/orgs/{org_id}/members \
  --header 'Content-Type: application/json' \
  --header 'authorization: <authorization>' \
  --data '{
  "action": "<string>",
  "target": "<string>",
  "permissions": [
    "<string>"
  ],
  "is_invite": true
}'
{
  "data": null,
  "errors": null
}

Headers

authorization
string
required

Your API key for authentication.

Path Parameters

org_id
string
required

The unique identifier of the organization.

Body

action
string
required

The action to perform.

Valid values: "add", "remove"

target
string
required

The user ID of the member to be added or removed.

permissions
string[]

A list of permissions to assign when adding a member.

Required only when action is "add".

Valid values: "owner", "admin", "operator", "viewer"

is_invite
boolean

Whether the removal applies to an invite instead of a full member.

Required only when action is "remove".

Response

data
null

Always null upon successful update.

errors
null

Always null on success.

{
  "data": null,
  "errors": null
}