cURL
curl --request PATCH \ --url https://app.getcensus.com/api/v1/invitations/{invitation_id} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "role": "admin" } '
{ "status": "updated", "data": { "id": 90967, "email": "[email protected]", "created_at": "2023-09-22T20:25:45.185Z", "created_by_id": 13, "claimed_at": "2023-09-22T20:25:45.185Z", "claimed_by_id": 11, "role": "admin", "associated_workspace_invitations": [ { "id": 90967, "workspace_id": 1234, "role": "Viewer" } ] } }
Update an unclaimed invitation’s role within the organization.
Bearer authorization using your Personal Access Token. Generate a new PAT on your user settings page.
ID of the invitation
admin
member
Successfully updated invitation's role.
The outcome of the update request
updated
"updated"
Show child attributes
Unique identifier for the invitation.
90967
Email address of the invitee.
"[email protected]"
Timestamp when the invitation was created.
"2023-09-22T20:25:45.185Z"
ID of the user who created the invitation.
13
Timestamp when the invitation was claimed.
ID of the user who claimed the invitation.
11
Role assigned to the invitee.
"admin"
The list of invitations to a specific workspace that have not yet been claimed. These will be accepted automatically when the user accepts their invite to the organization.
Unique identifier for the invitation to a specific workspace.
Unique identifier for the workspace.
1234
Role assigned to the invitee. If the Organization does not have Access Controls OR no role is specified the default will be "Owner".
Viewer
Operator
Editor
Owner
"Viewer"
Was this page helpful?