Skip to content

Create First User

Request

Bodyapplication/jsonrequired
usernamestring, (email)(Username)required
passwordstring(Password)required
rolesArray of strings(Roles)required
POST
/api/v1/users/public
curl -i -X POST \
  https://matric-docs.redocly.app/_mock/openapi/api/v1/users/public \
  -H 'Content-Type: application/json' \
  -d '{
    "username": "user@example.com",
    "password": "string",
    "roles": [
      "string"
    ]
  }'

Responses

Successful Response

Bodyapplication/json
usernamestring or null(Username)
Any of:
string
rolesstring(Roles)required
scopesArray of strings(Scopes)
Default:[]
Response
{ "username": "string", "roles": "string", "scopes": [] }