Update user role
Update user role
PUT
/v2/users/{id}/roleFeatures
Send the token in the Authorization: Bearer API_TOKEN header. See Tokens for which token types this endpoint accepts.
Input2
Sent from your browser straight to the API — never to Docsbook, never stored.
(path)
Role identifier to assign to the user
Output4
User's email address
Unique identifier for the user
User's full name
Detailed information about a user's role
Responses
200User
Example input
curl -X PUT 'https://api.axiom.co/v2/users/{id}/role' \
-H 'Authorization: Bearer API_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"role":"admin"}'Example output
{
"email": "john.doe@example.com",
"id": "usr_123456789",
"name": "John Doe",
"role": {
"id": "role_123456789",
"name": "Organization Admin"
}
}