users

Lists all users in the system.

Individual users (and their stats) are viewable by anyone the site privacy setting admits, mirroring the public drinker pages; the full user listing requires authentication. User management (create, edit, enable/disable, staff status, set-password) is admin-only; there is no delete — accounts are disabled instead.

post/api/users

Request

  • The document declares no server URL.
  • Auth: one of:
    • HTTP basic
    • API key in cookie sessionid

Request body

usernamestring required
passwordstring required
is_staffboolean

Response

idinteger required
usernamestring required

Required. 30 characters or fewer. Letters, numbers and @/./+/-/_ characters

display_namestring

Full name, will be shown in some places instead of username

is_staffboolean required

Designates whether the user can log into this admin site.

is_activeboolean required

Designates whether this user should be treated as active. Unselect this instead of deleting accounts.

Changes

    • breaking

      the request property's minLength was increased from 0 to 1 (media type: application/json)

    • breaking

      the request property's minLength was increased from 0 to 1 (media type: application/x-www-form-urlencoded)

    • breaking

      the request property's minLength was increased from 0 to 1 (media type: multipart/form-data)