Skip to main content
POST
/
auth
/
admin
Create admin user
curl -X POST http://localhost:50052/auth/admin \
  -H "Content-Type: application/json" \
  -H 'Authorization: Bearer <admin-jwt-or-access-token>' \
  -d '{
    "password": "MySecurePwd!1"
  }'
{
  "status": "success",
  "message": "User registered successfully"
}

Authorizations

Authorization
string
header
required

Admin JWT obtained from the login endpoint.

Body

application/json
password
string
required

Password for the admin user. Must satisfy the password policy.

Response

Admin user created successfully.

status
string

Operation result status.

message
string

Human-readable status message.