PATCH
/
invitations
/
{invitation_id}
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": "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"
      }
    ]
  }
}

Authorizations

Authorization
string
headerrequired

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

Path Parameters

invitation_id
integer
required

ID of the invitation

Body

application/json
role
enum<string>
Available options:
admin,
member

Response

200 - application/json
status
enum<string>
required

The outcome of the update request

Available options:
updated
data
object
required