PATCH
/
v3
/
workspaces
/
{workspaceId}
/
invitations
/
{invitationId}
Update Workspace Invitation
curl --request PATCH \
  --url http://127.0.0.1:3333/v3/workspaces/{workspaceId}/invitations/{invitationId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "type": "ADMIN"
}
'
{
  "invitation": {
    "id": "<string>",
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z",
    "email": "<string>",
    "workspaceId": "<string>",
    "type": "ADMIN"
  }
}

Authorizations

Authorization
string
header
required

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

Path Parameters

workspaceId
string
required
invitationId
string
required

Body

application/json
type
enum<string>
required
Available options:
ADMIN,
MEMBER,
GUEST

Response

200 - application/json

Default Response

invitation
object
required