Passer au contenu principal
POST
/
members
/
{user_id}
/
roles
Assign roles to a member
curl --request POST \
  --url https://{tenantDomain}/my-org/v1/members/{user_id}/roles \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "role_ids": [
    "rol_SO2j0sFo9NFa3F9w"
  ]
}
'

Autorisations

Authorization
string
header
requis

The access token received from the authorization server in the OAuth 2.0 flow.

Paramètres de chemin

user_id
string
requis

The user ID.

Pattern: ^(?=.{1,1024}$).+\|.+$

Corps

application/json
role_ids
string[]
requis
Required array length: 1 - 10 elements

The ID of a role that can be assigned to a member of an organization.

Pattern: ^rol_[A-Za-z0-9]{16}$

Réponse

Role(s) successfully assigned to member.