Skip to content

Add an admin account (admin)​

POST
/api/v1/users

Authorizations​

session
Type
API Key (cookie: pvmon_session)
or
token

API token pvm_<id>_<secret>.

Type
HTTP (bearer)

Request Body​

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

Responses​

Created.

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.