Gamma API

Cancel an organization invitation

DELETE
/api/organizations/{slug}/invitations/{invitationId}

Answers the invitation, now canceled. Answered by the auth plugin, whose refusals are { code, message } rather than { error }.

Who may call it: An owner, security admin or admin of the organization. API keys: no.

Authorization

session
cookiegamma.session_token<token>

The session cookie a sign-in sets. Over HTTPS its name carries the __Secure- prefix. Browsers send it on their own; other clients keep it from the sign-in response.

Path Parameters

slug*string

The organization's slug, as in its URL.

invitationId*string

Response Body

OK.

application/json
  1. response

An invitation to join an organization, or one project of it.

id*string
organizationId*string
email*string
role*|

The role it gives on accepting.

status*string

pending, accepted, rejected or canceled. One past expiresAt stays pending.

expiresAt*string
Formatdate-time
createdAt*string
Formatdate-time
inviterId*string

The user who sent it.

projectId?|

The project it invites to, as a guest; null or absent for the organization itself.

Example Request
curl -X DELETE 'http://localhost:3000/api/organizations/string/invitations/string'
Example Response
{  "id": "string",  "organizationId": "string",  "email": "string",  "role": "string",  "status": "string",  "expiresAt": "2019-08-24T14:15:22Z",  "createdAt": "2019-08-24T14:15:22Z",  "inviterId": "string",  "projectId": "string"}