Users
Update user by ID
Updates 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).
patch/users/{id}
Path parameters
idinteger required
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
}
}