Skip to main content
POST
/
admins
/
create
Create admin
curl --request POST \
  --url https://api.zochil.io/v3/monitoring/admins/create \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "username": "<string>",
  "email": "[email protected]",
  "password": "<string>",
  "is_super": false,
  "roles": [
    "<string>"
  ]
}
'
{
  "id": "<string>",
  "username": "<string>",
  "email": "<string>",
  "is_super": true,
  "roles": [
    "<string>"
  ],
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}

Authorizations

access-token
string
header
required

Body

application/json
username
string
required
email
string<email>
required
password
string
required
is_super
boolean
default:false
roles
string[]

Response

201 - application/json

Admin created successfully

id
string
username
string
email
string
is_super
boolean
roles
string[]
created_at
string<date-time>
updated_at
string<date-time>