Skip to main content
PUT
/
api
/
users
/
{id}
/
role
Error
A valid request URL is required to generate request examples
{
  "message": "<string>"
}

Authorizations

Authorization
string
header
required

Management API authentication for /api/* endpoints. Use the Authorization header with Bearer <API key>. Virtual keys, dashboard/user/session tokens, and x-api-key headers are not supported on management APIs.

Path Parameters

id
string
required

User ID

Body

application/json
role_id
integer
required

ID of the RBAC role to assign

Response

Role assigned successfully

Simple message response

message
string