Keyboard shortcuts

Press ← or → to navigate between chapters

Press ? to show this help

Press Esc to hide this help

Users

People who sign in (admin).

GET /api/v1/users

All users. Admin.

Who may call it: an admin.

Answers

POST /api/v1/users

Make an account with a temporary password (the person changes it at their first sign-in). Admin.

Who may call it: an admin.

Body (application/json): NewUserRequest

Answers

PATCH /api/v1/users/{id}

Change a user's details, role, permissions, or disable them. Refused when it would leave no admin who can sign in. Admin.

Who may call it: an admin.

Parameters

InType
id (required)pathnumberUser id.

Body (application/json): UserUpdate

Answers

POST /api/v1/users/{id}/password

Give a user a new temporary password (their sessions end; they must change it when they sign in). Admin.

Who may call it: an admin.

Parameters

InType
id (required)pathnumberUser id.

Body (application/json): PasswordReset

Answers

POST /api/v1/users/{id}/unlock

Let a user who was locked out after wrong passwords try again. Admin.

Who may call it: an admin.

Parameters

InType
id (required)pathnumberUser id.

Answers

Shapes

The JSON bodies the operations above take and return.

ErrorBody

FieldType
errortextWhat went wrong, in plain words.

NewUserRequest

FieldType
display_name (optional)text or null
email (optional)text or null
passwordtextA temporary password: the person must change it at their first sign-in.
permissions (optional)list of text or nullpayloads and/or audit.
role (optional)text or nullviewer (default), operator or admin.
usernametext

PasswordReset

FieldType
passwordtextThe temporary password; the person must change it at their next sign-in.

UserInfo

FieldType
created_attime (RFC 3339)
directory_checked_at (optional)time (RFC 3339) or nullA directory account: when the directory was last asked about them (sign-in or refresh).
directory_refusedtrue or falseA directory account the directory refused at its last check (no group, disabled or gone there): it can't sign in or act until the directory says yes again.
disabledtrue or false
display_nametext
emailtext
idnumber
last_sign_in_at (optional)time (RFC 3339) or null
locked_until (optional)time (RFC 3339) or nullRefused after too many wrong passwords, until then.
made_for_ownertrue or falseA directory account the engine made because an owner text names them, before their first sign-in (directory accounts are otherwise made at one).
must_change_passwordtrue or falseAn admin chose the password; the next sign-in can only change it.
permissionslist of textpayloads, audit (admins have both whatever is listed).
roletextviewer, operator or admin.
sourcetextWhere the password is checked: local, or a directory.
usernametext

UserUpdate

FieldType
disabled (optional)true or false or nullDisabled users can't sign in, and their sessions and tokens stop at once.
display_name (optional)text or null
email (optional)text or null
permissions (optional)list of text or null
role (optional)text or null