v51

latestOpenAPI 3.0.0raw.githubusercontent.com2026-08-01703301564.3 KB
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

namestring

First name

surnamestring

Last name

emailstring email
roleIdinteger

New role ID (1=Admin, 2=Reviewer, 3=Editor, 4=Auditor). Can be sent as string.

last_loginstring date-time

Override last login timestamp

Example request

{
  "name": "Jane",
  "surname": "Smith",
  "email": "jane@example.com",
  "roleId": 1
}

Response

User updated

messagestring

Example response

{
  "message": "Accepted",
  "data": {
    "id": 1,
    "name": "John",
    "surname": "Doe",
    "email": "john@example.com",
    "role_id": 1,
    "organization_id": 1
  }
}