SPA Users

SPA: Updates a User

Updates an existing user. Requires ROLE_ADMIN.

PATCH/api/spa/users/{id}

Authorizations

X-AUTH-TOKEN
stringheaderrequired

Value for the X-AUTH-TOKEN header parameter.

Path Parameters

id
stringrequired

User identifier

Request Body

application/json
required

The updated User resource

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

Response

200application/json

User resource updated

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"