Skip to main content
PUT
Replace (sync) the roles for a user

Authorizations

Authorization
string
header
required

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

Headers

X-Tenant
number
required

Tenant identifier. Send the Tenant ID in the X-Tenant header to scope API requests to a specific tenant.

Path Parameters

id
integer
required

The user identifier

Body

application/json
role_ids
integer[]
required

Role IDs to assign (full sync — empty array clears all roles).

A role ID.

Response

success
string
required
data
any[]
required