PATCH
/
users
/
{id}
Update user
curl --request PATCH \
  --url https://api.steuerboard.com/v1/users/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'x-client-id: <x-client-id>' \
  --data '{
  "role": "client_user"
}'
{
  "id": "cmf41ajzv003706un4i99q1a0",
  "createdAt": "2024-05-14T08:30:00Z",
  "email": "frida@example.com",
  "firstName": "Frida",
  "lastName": "Meyer",
  "roles": [
    "client_admin"
  ]
}

Authorizations

Authorization
string
header
required

Bearer token authentication

Headers

x-client-id
string<cuid>
required

The ID of the client

Example:

"cmf41ajzv003706un4i99q19z"

Path Parameters

id
string<cuid>
required

The ID of the item

Example:

"cmf41ajzv003706un4i99q19z"

Body

application/json

User update

role
enum<string>
required

Role that should replace the user's current role.

Available options:
client_admin,
client_user
Example:

"client_user"

Response

User updated

id
string<cuid>
required

Identifier of the client user.

Example:

"cmf41ajzv003706un4i99q1a0"

createdAt
string<date-time>
required

The date and time when the client user record was created. ISO-8601 format (YYYY-MM-DDTHH:MM:SSZ).

Example:

"2024-05-14T08:30:00Z"

email
string<email>
required

Email address of the client user.

Example:

"frida@example.com"

firstName
string | null
required

First name of the client user, if provided.

Example:

"Frida"

lastName
string | null
required

Last name of the client user, if provided.

Example:

"Meyer"

roles
string[]
required

List of role names assigned to the user.

Role name assigned to the user.