PATCH
/
users
/
{id}
Users:Patch User
curl --request PATCH \
  --url https://cloud.onyx.app/api/users/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "password": "<string>",
  "email": "jsmith@example.com",
  "is_active": true,
  "is_superuser": true,
  "is_verified": true
}'
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"email": "jsmith@example.com",
"is_active": true,
"is_superuser": false,
"is_verified": false,
"role": "limited"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Body

application/json

Role updates are not allowed through the user update endpoint for security reasons Role changes should be handled through a separate, admin-only process

Response

200
application/json

Successful Response

The response is of type object.