OrganizationsOrganization members
Cancel an organization invitation
DELETE
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.
sessioncookie
gamma.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.
slug*stringThe organization's slug, as in its URL.
invitationId*stringOK.
application/json- response
An invitation to join an organization, or one project of it.
id*stringorganizationId*stringemail*stringrole*|The role it gives on accepting.
status*stringpending, accepted, rejected or canceled. One past expiresAt stays pending.
expiresAt*stringFormat
date-timecreatedAt*stringFormat
date-timeinviterId*stringThe 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"}