v50

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

Update a user.

Requires elevated authentication.

post/user/{id}

Path parameters

idinteger required

the user id

Request body

adminboolean required

If the user is an administrator.

namestring required

The user name. For login.

passstring

The user password. For login. Empty for using old password

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