Update invitation
Update an unclaimed invitation's role within the organization.
Request schema
Path parameters
ID of the invitation
Header parameters
HTTP: basicAuth
HTTP AuthorizationScheme: basic
Request
PATCH /api/v1/invitations/{invitation_id} HTTP/1.1 Authorization: Bearer REPLACE_BEARER_TOKEN Content-Type: application/json Host: app.getcensus.com Content-Length: 21 { "role": "admin" }
Responses
200
The outcome of the update request
Unique identifier for the invitation.
Email address of the invitee.
Timestamp when the invitation was created.
ID of the user who created the invitation.
Timestamp when the invitation was claimed.
ID of the user who claimed the invitation.
Role assigned to the invitee.
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.
Role assigned to the invitee. If the Organization does not have Access Controls OR no role is specified the default will be "Owner".
404
HTTP status code.
{ "status": "updated", "data": { "id": 90967, "email": "newuser@example.com", "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" } ] } }