setup

Creates the initial admin account and logs it in.

post/api/setup/admin-user

Request

  • The document declares no server URL.
  • Auth: none declared

Request body

usernamestring required
emailstring email required
passwordstring required

Response

idinteger required
usernamestring required

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

emailstring email required
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)

    • 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)