Skip to content

Create the first admin (open only if no user exists)​

POST
/api/v1/setup

You must send the setup code from the startup log.

Request Body​

application/json
JSON
{
  
"code": "string",
  
"name": "string",
  
"password": "string",
  
"lang": "de"
}

Responses​

Created and logged in.

application/json
JSON
{
  
"user": {
  
  
"id": 0,
  
  
"name": "string",
  
  
"lang": "string",
  
  
"created_at": "2024-01-01T00:00:00Z",
  
  
"last_login": "2024-01-01T00:00:00Z"
  
}
}

Samples​

Version 0.4.0-66c93c2. MIT license.