users

Update a user

Update user details. A regular user account can only update his details. A regular user account cannot change their username or role. Access policy: authenticated

put/users/{id}

Request

  • Base URL
    /api (relative, and the document was published on a file host, not at the API’s origin)
  • URL
    /api/users/{id}
  • Auth
    • API key in header X-API-KEY
    • or API key in header Authorization

Path parameters

idinteger required

User identifier

Request body

NewPasswordstring required
Passwordstring required
Role1 | 2 required

User role (1 for administrator account and 2 for regular account)

UseCacheboolean required
Usernamestring required

Example request

{
  "NewPassword": "asfj2emv",
  "Password": "cg9Wgky3",
  "Role": 2,
  "Theme": {
    "color": "dark"
  },
  "UseCache": true,
  "Username": "bob"
}

Response

Success

Idinteger required

User Identifier

Role0 | 1 | 2 required
TokenIssueAtinteger
UseCacheboolean
Usernamestring required

Example response

{
  "Id": 1,
  "ThemeSettings": {
    "color": "dark"
  },
  "TokenIssueAt": 1,
  "UseCache": true,
  "Username": "bob"
}

Changes

No recorded changes to this operation across all 21 revisions of this API.