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"
  }
}'
{
  "status": "updated",
  "data": {
    "id": 123,
    "email": "john.doe@example.com",
    "created_at": "2023-08-20T10:00:00Z",
    "role": "admin"
  }
}

Authorizations

Authorization
string
headerrequired

Bearer authorization using your Personal Access Token. Generate a new PAT on your user settings page.

Path Parameters

user_id
integer
required

ID of the user

Body

application/json
user
object
required

Response

200 - application/json
status
enum<string>
required

Outcome of update request

Available options:
updated
data
object
required