cURL
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" } }
Update a user’s role within the organization.
Bearer authorization using your Personal Access Token. Generate a new PAT on your user settings page.
ID of the user
success
The response is of type object.
object
Was this page helpful?