English
cURL
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" } ] }
Add a role to a member.
The access token received from the authorization server in the OAuth 2.0 flow.
The user ID.
Assign role to member successfully.
The response is of type object.
object