Update user
PUT
/api/v1/integrations/user/{username}UsersUpdates mutable user fields for an account user.
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
username | string | Yes | Username/email identifier. |
Request body
| Field | Type | Required | Description |
|---|---|---|---|
first_name | string | No | Updated first name. |
last_name | string | No | Updated last name. |
phone | string | No | Updated phone number. |
role | string | No | Updated role. |
Responses
| HTTP | Description |
|---|---|
| 200 | Updated user object in `data`. |
| 401 | Unauthorized - invalid or missing Bearer token. |
| 404 | Account/user not found (for example `User doesn't exist`). |
Response payload
Success response (200)
Example
Last updated on