v50

latestSwagger 2.0MITraw.githubusercontent.com2026-07-15422691.7 KB
user

Create a user.

With enabled registration: non admin users can be created without authentication. With disabled registrations: users can only be created by admin users.

Requires elevated authentication.

post/user

Request body

adminboolean required

If the user is an administrator.

namestring required

The user name. For login.

passstring required

The user password. For login.

Example request

{
  "admin": true,
  "name": "unicorn",
  "pass": "nrocinu"
}

Response

Ok

adminboolean required

If the user is an administrator.

createdAtstring date-time required

The date the user was created.

idinteger required

The user id.

namestring required

The user name. For login.

Example response

{
  "admin": true,
  "createdAt": "2019-01-01T00:00:00Z",
  "id": 25,
  "name": "unicorn"
}