Update user role
Changes 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.
Parameters
| Property | Type | Location | Description |
|---|---|---|---|
id | stringRequired | path |
Body
Object representing a user's role update request
application/json| Property | Type | Description |
|---|---|---|
role | stringRequired | Role identifier to assign to the user |
Request
Try itRun this request against your Axiom organization
Credentials stay in this browser tab and are only sent to Axiom when you run the request.
Response
200Updated user.403Insufficient permissions, you tried to change your own role, or the caller isn't allowed to assign or change the `owner` role.
404User or role not found.| Property | Type | Description |
|---|---|---|
email | stringRequired | User's email address |
id | stringRequired | Unique identifier for the user |
name | stringRequired | User's full name |
role | objectRequired | Detailed information about a user's role |
id | stringRequired | Unique identifier for the role |
name | stringRequired | Human-readable name of the role |