PUT
/
workspaces
/
{workspace_id}
/
invitations
/
{invitation_id}
curl --request PUT \
  --url https://app.getcensus.com/api/v1/workspaces/{workspace_id}/invitations/{invitation_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "role": "owner"
}'
{
  "data": {
    "associated_workspace_invitations": [
      {
        "id": 90967,
        "role": "Viewer",
        "workspace_id": 1234
      }
    ],
    "claimed_at": "2023-09-22T20:25:45.185Z",
    "claimed_by_id": 11,
    "created_at": "2023-09-22T20:25:45.185Z",
    "created_by_id": 13,
    "email": "newuser@example.com",
    "id": 90967,
    "role": "admin"
  },
  "status": "updated"
}

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

workspace_id
integer
required

ID of the workspace

invitation_id
integer
required

ID of the invitation

Body

application/json
role
enum<string>

The new role to be associated with this invitation that will be applied to the user once the invite is claimed.

Available options:
owner,
editor,
operator,
viewer

Response

200 - application/json
data
object
required
status
enum<string>
required

The outcome of the update request

Available options:
updated