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": "[email protected]", "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
Show child attributes
User's role in the organization.
admin
member
"admin"
success
Outcome of update request
updated
"updated"
Unique identifier for the user.
User's email address.
"[email protected]"
Timestamp of user account creation.
"2023-08-20T10:00:00Z"
Was this page helpful?