Users
PUT /users/{id}/role
Changed onChanges the role of a member of the organization and returns the updated user. You can't change your own role. Only owners using a personal access token (PAT) can assign owner or change an owner's role.
Request
- Base URLhttps://api.axiom.co/v2
- AuthOAuth 2Authorization codehttps://accounts.google.com/o/oauth2/v2/authToken URLhttps://www.googleapis.com/oauth2/v4/tokenScopesusers|update
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
idstring required
Request body
Example request
{
"role": "admin"
}Response
Updated user.
Example response
{
"email": "john.doe@example.com",
"id": "usr_123456789",
"name": "John Doe",
"role": {
"id": "role_123456789",
"name": "Organization Admin"
}
}Changes
- info
added the non-success response with the status
- info
added the non-success response with the status
- info