Update user
/api/v1/users/{user_uuid}
operationId: user.patch
Base: https://portal.watcheye.com.au/api/v1/users/{user_uuid}
Update a single user by UUID.
The update user record is returned in the response.
Parameters
The following parameters can be updated:
- enabled: Whether the user is enabled
Path parameters
| Field | Description |
|---|---|
user_uuid |
string (uuid) The user UUID |
Request body
Content type application/json.
The user details to update
| Field | Description |
|---|---|
enabled |
boolean Update the user's enabled status
Note: The API will accept the string 'true' or the number 1 for true and the string 'false' or the number 0 for false as well as the boolean values. |
Responses
User response
application/json
| Field | Description |
|---|---|
data |
object The user details after the update |
data. |
string (uuid) The user's UUID |
data. |
string The user's username |
data. |
string The user's first name |
data. |
string The user's last name |
data. |
string The user's email address |
data. |
string The user's phone number |
data. |
boolean Whether the user is enabled |
data. |
array of strings The user's roles
Note: This will be an empty array if the user has no special roles assigned to them. |
data. |
string (date-time) or null The user's last login timestamp (ISO 8601 format) |
data. |
string (date-time) The user's creation timestamp (ISO 8601 format) |
data. |
string (date-time) The user's last update timestamp (ISO 8601 format) |
api_reference |
string (uuid) A unique identifier for this request. This can be used to track the request in the logs and audit trail. |