Skip to content

Register user

POST
/api/user/register

Register a new user. This will send an email to the user and to all the administrators. The first registered user will be an active admin.

Request Body

application/json
JSON
{
  
"email": "example@gancio.org",
  
"password": "MY_PASSWORD",
  
"description": "A new user for gancio"
}

Responses

User has been registered.

application/json
JSON
{
  
"id": 1,
  
"email": "example@gancio.org",
  
"description": "Example user",
  
"is_active": true,
  
"to_notify": true,
  
"role": "user",
  
"createdAt": "2020-01-29T18:10:16.630Z",
  
"updatedAt": "2020-01-30T22:42:14.789Z"
}

Playground

Body

Samples

Powered by VitePress OpenAPI