PATCH
/
users
/
{user_id}
curl --request PATCH \
  --url https://app.getcensus.com/api/v1/users/{user_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "user": {
    "role": "admin"
  }
}'
{
  "data": {
    "created_at": "2023-08-20T10:00:00Z",
    "email": "john.doe@example.com",
    "id": "12345",
    "role": "admin"
  },
  "status": "updated"
}

Authorizations

Authorization
string
headerrequired

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

Path Parameters

user_id
integer
required

ID of the user

Body

application/json
user
object

Response

200 - application/json
data
object
required
status
enum<string>
required

The outcome of the update request

Available options:
updated