AviatoAviato
DeveloperAPI ReferenceAuthUsers

/api/auth/users

POST
/api/auth/users

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/api/auth/users" \  -H "Content-Type: application/json" \  -d '{    "username": "string",    "password": "stringst"  }'
{
  "user": {
    "id": "string",
    "username": "string",
    "displayName": "string",
    "role": "admin",
    "publicKey": "string",
    "libraryAccess": [
      {
        "libraryId": "string",
        "maxRating": "string"
      }
    ],
    "enabled": true,
    "createdAt": "string",
    "lastLoginAt": "string"
  }
}
{
  "error": "string"
}
{
  "error": "string"
}