Annotation endpoints
API token endpoints
Dataset endpoints
Map field endpoints
Monitor endpoints
Notifier endpoints
Organization endpoints
Role-based access control endpoints
Saved queries endpoints
User endpoints
Update user role
Update user role
PUT
/
users
/
{id}
/
role
Copy
Ask AI
curl --request PUT \
--url https://api.axiom.co/v2/users/{id}/role \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"role": "admin"
}'
Copy
Ask AI
{
"email": "john.doe@example.com",
"id": "usr_123456789",
"name": "John Doe",
"role": {
"id": "role_123456789",
"name": "Organization Admin"
}
}
Authorizations
The access token received from the authorization server in the OAuth 2.0 flow.
Path Parameters
Body
application/json
Object representing a user's role update request
Response
200 - application/json
User
Represents a user in the system
Was this page helpful?
Copy
Ask AI
curl --request PUT \
--url https://api.axiom.co/v2/users/{id}/role \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"role": "admin"
}'
Copy
Ask AI
{
"email": "john.doe@example.com",
"id": "usr_123456789",
"name": "John Doe",
"role": {
"id": "role_123456789",
"name": "Organization Admin"
}
}
Assistant
Responses are generated using AI and may contain mistakes.