POST
/
api
/
auth
/
register
curl --request POST \
  --url http://localhost/api/auth/register \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form 'firstName=<string>' \
  --form 'lastName=<string>' \
  --form 'email=<string>' \
  --form 'password=<string>' \
  --form role=USER
{
  "success": true
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

firstName
string
required
Required string length: 1 - 255
lastName
string
required
Required string length: 1 - 255
email
string
required
Required string length: 1 - 255
password
string
required
Required string length: 8 - 128
role
enum<string>
required
Available options:
USER,
ADMIN

Response

200
*/*
User successfully registered
success
boolean