v1

latestOpenAPI 3.1.12026-07-124448163.2 KB
admin.users

Invite an accountant user

Invites a new accountant user and returns the created record.

post/admin/users

Request body

emailstring email required

Email address that should receive the invitation.

Example request

{
  "email": "frida@example.com"
}

Response

Accountant user invited

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"
    }
  ]
}