v1

latestOpenAPI 3.1.12026-07-124448163.2 KB
admin.users

Update an accountant user

Updates an accountant user by ID.

patch/admin/users/{id}

Path parameters

idstring cuid required

The ID of the item

Example:cmf41ajzv003706un4i99q19z

Request body

Response

Accountant user updated

idstring cuid required

Identifier of the accountant user.

createdAtstring date-time required

ISO 8601 timestamp when the accountant user record was created.

emailstring email required

Email address of the accountant user.

firstNamestring nullable required

First name of the accountant user, if provided.

lastNamestring nullable required

Last name of the accountant user, if provided.

Example response

{
  "id": "cmf41ajzv003706un4i99q1b1",
  "createdAt": "2024-08-20T12:34:56Z",
  "email": "alex@example.com",
  "firstName": "Alex",
  "lastName": "Müller",
  "roles": [
    {
      "id": "cmf41ajzv003706un4i99q1a0",
      "name": "accountant_admin",
      "customName": "Head of Accounting"
    }
  ]
}