PATCH
/
v1
/
orgs
/
{org_id}
/
members
/
permissions
curl --request PATCH \
  --url https://api.bland.ai/v1/orgs/{org_id}/members/permissions \
  --header 'Content-Type: application/json' \
  --header 'authorization: <authorization>' \
  --data '{
  "action": "<string>",
  "target": "<string>",
  "permissions": [
    "<string>"
  ]
}'
{
  "data": {
    "newPermissions": ["viewer", "operator"]
  },
  "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 on the member’s permissions.

Valid values: "add", "remove", "reset", "set"

target
string
required

The user ID of the member whose permissions are being modified.

permissions
string[]
required

A list of permissions to update.

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

Response

data
object

Contains the updated permissions for the user.

data.newPermissions
string[]

The updated list of permissions assigned to the user.

errors
null

Always null on success.

{
  "data": {
    "newPermissions": ["viewer", "operator"]
  },
  "errors": null
}