AccountInvitations
Reject an invitation
POST
A refusal from the auth plugin is { code, message } rather than { error }.
Who may call it: Any signed-in user, for their own account. 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.
id*stringOK.
application/json- response
invitation*|nullmember*nullExample Request
curl -X POST 'http://localhost:3000/api/account/invitations/string/reject'Example Response
{ "invitation": { "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" }, "member": null}