Revoke an Invitation
DELETE
/v1/organizations/{id}/invitations/{invitation}
const url = 'https://app.caprid.com/v1/organizations/4/invitations/3f9c1a2b7d4e';const options = { method: 'DELETE', headers: {cookie: '__Host-switchboard_session=<__Host-switchboard_session>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://app.caprid.com/v1/organizations/4/invitations/3f9c1a2b7d4e \ --cookie __Host-switchboard_session=<__Host-switchboard_session>Its link stops working. Owners only, signed in with a session.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
integer
The Organization’s id, from GET /v1/organizations.
Example
4invitation
required
string
The Invitation’s id, from the list.
Example
3f9c1a2b7d4eResponses
Section titled “Responses”Revoked.
No valid credential. Missing, expired and revoked credentials all get the same response, and so does an API key whose trial has lapsed. An Agent token from before a claim gets a 401 too, once the claim has made the trial a person’s, with a message saying to get a new token.
Media typeapplication/json
object
error
required
string
Example
{ "error": "the requested grants exceed the key's scope"}Headers
Section titled “Headers”WWW-Authenticate
string
Example
Bearer realm="switchboard"You aren’t an Owner of this Organization, or you sent an API key.
Media typeapplication/json
object
error
required
string
Example
{ "error": "only an Owner can manage this Organization's Invitations"}No such pending Invitation. One already accepted, revoked or expired is a 404 too.
Media typeapplication/json
object
error
required
string
Example
{ "error": "the requested grants exceed the key's scope"}