SysOS Help Center
Users

Update a user

PATCH/v1/users/{id}

Update mutable fields on a user. Only the fields you send are changed.

Parameters

Name In Type Description
id path string The user id.

Request

curl --request PATCH \
  --url https://api.sysos.app/v1/users/{id} \
  --header "Authorization: Bearer ACCESS_TOKEN" \
  --header "Content-Type: application/json" \
  --data '{
    "role": "admin"
  }'

Response 200 OK

{
  "id": "usr_b1d4a902",
  "name": "Grace Hopper",
  "email": "grace@acme.com",
  "role": "admin",
  "status": "active"
}