Skip to content

Create user

POST
/api/user

Create a new user. Admin role is required.

Authorizations

bearerAuth

Bearer token using a JWT

Type
HTTP (Bearer)

Request Body

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

Responses

Created user.

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

Authorization
Body

Samples

Powered by VitePress OpenAPI