POST
/
members
/
{user_id}
/
roles
Assign Member Roles
curl --request POST \
  --url https://{tenantDomain}/my-org/members/{user_id}/roles \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "role_id": "rol_SO2j0sFo9NFa3F9w"
}'
{
  "roles": [
    {
      "id": "rol_SO2j0sFo9NFa3F9w",
      "name": "role1",
      "description": "role1 description"
    },
    {
      "id": "rol_BO2j1sFo9NFa3F9w",
      "name": "role2",
      "description": "role2 description"
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Path Parameters

user_id
string
required

The user ID.

Body

application/json

Response

201
application/json

Assign role to member successfully.

The response is of type object.