users

Assign a role to a user

Assigns a role to a user by user ID

post/users/{id}/roles

Request

  • Base URL: https://api.ritten.io/v1
  • URL: https://api.ritten.io/v1/users/{id}/roles
  • Auth: none declared

Path parameters

idstring uuid required

ID of user to assign role to

Request body

roleIdstring uuid required

ID of role to assign

Response

Role assigned successfully

idstring

Example response

{
  "id": "182c2e54-3494-4b85-aba5-038cf539d5bf"
}

Changes

No recorded changes to this operation across all 1 revision of this API.