Set User Role

Set the role of a user

Authentication

AuthorizationBearer
Bearer token authentication

Request

This endpoint expects an object.
userIdstringRequired
The user id
rolestringRequired

The role to set, this can be a string or an array of strings. Eg: admin or [admin, user]

Response

User role updated
userobject

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
429
Too Many Requests Error
500
Internal Server Error