Update user by ID
Changed onUpdates user fields (name, surname, email, roleId, last_login). Only provided fields are updated. Organization isolation enforced. Sends Slack notification on role change. Sends email notification when role changes from Editor (3) to Admin (1).
Request
- Base URL/api (relative, and the document was published on a file host, not at the API’s origin)
- URL/api/users/{id}
- AuthHTTP bearer
Path parameters
User ID to update
Request body
Example request
{
"name": "Jane",
"surname": "Smith",
"email": "jane@example.com",
"roleId": 1
}Response
User updated
Example response
{
"message": "Accepted",
"data": {
"id": 1,
"name": "John",
"surname": "Doe",
"email": "john@example.com",
"role_id": 1,
"organization_id": 1
}
}Changes
- breaking
the response property
/became nullable for the status - breaking
removed the required property
/from the response with the status - warning
removed the optional property
/from the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the required property
/to the response with the status
- breaking
- info
api operation id
updateUserByIdwas added - info
api tag
Usersadded - info
api tag
Users - CRUDremoved
- info