SPA Users

SPA: Creates a new User

Creates a new user for the authenticated user's client. Password is auto-generated and sent via email. Requires ROLE_ADMIN.

POST/api/spa/users

Authorizations

X-AUTH-TOKEN
stringheaderrequired

Value for the X-AUTH-TOKEN header parameter.

Request Body

application/json
required

The new User resource

{
  "email": "user@example.com",
  "roles": [
    "string"
  ],
  "adminNote": "string",
  "active": true,
  "locale": "en"
}

Response

201application/json

User resource created

id
integer
email
string<email>
roles
string[]
adminNote
string | null
active
boolean

Available options: truefalse

Example: true

lastLoginDate
string<date-time> | null
locale
string

Example: "en"

createdBy
string

User, created this entry

Example: "user1@company.com"

updatedBy
string

User, updated this entry

Example: "user1@company.com"

createdAt
string<date-time>

UTC date time of entry creation

Example: "2024-08-23T00:00:00+00:00"

updatedAt
string<date-time>

UTC date time of last entry update

Example: "2024-08-23T00:00:00+00:00"