API Reference/api/auth/api/auth/create

/api/auth/create

POST
Create a user (invite/regisration)

Body (JSON)

Field NameTypeDescription
codestringThe invite code
usernamestringThe username
passwordstringThe password

200
Ok (JSON)

Field NameTypeDescription
successbooleantrue if the user was created, false otherwise

400
Bad Request (JSON)

  • invites are disabled - FEATURES_INVITES is set to false, therefore you cannot access this resource.
  • user registration is disabled - FEATURES_USER_REGISTRATION is set to false, therefore you cannot access this resource.
  • invalid invite code - The invite code provided is invalid (doesn't exist probably or was wrong).
  • username already exists - The username provided already exists.

POST
Create a user (admin)

Info
Info

Requires administrator privileges

Body (JSON)

Field NameTypeDescription
usernamestringThe username of the user
passwordstringThe password of the user
administratorbooleanWhether the user is an administrator

200
Ok (JSON)

Returns a user object

400
Bad Request (JSON)

  • no username - No username was provided
  • no password - No password was provided
  • user exists - The username already exists
Last updated: 12/24/2022
Edit this page on GitHub