Skip to main content
PUT
/
users
/
update
Update user (partial)
curl --request PUT \
  --url https://api.octaviatech.app/cms/users/update \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "id": "{{objectId}}",
  "role": 3,
  "firstName": "Jane A.",
  "isActive": true
}'
{
  "success": true,
  "statusCode": 201,
  "message": "User updated",
  "data": {
    "id": "{{objectId}}"
  }
}

Authorizations

x-api-key
string
header
required

Body

application/json
id
string
required
Example:

"{{objectId}}"

firstName
string
lastName
string
phoneNumber
string | null
email
string<email> | null
password
string | null
Minimum length: 6
nationalId
string | null
avatar
string<uri> | null
role
enum<integer>
Available options:
0,
1,
2,
3,
4
customTitle
string | null
departmentId
string | null
reportsTo
string | null

Response

Updated

The response is of type any.