Skip to content

Revoke an Invitation

DELETE
/v1/organizations/{id}/invitations/{invitation}
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.

id
required
integer

The Organization’s id, from GET /v1/organizations.

Example

4
invitation
required
string

The Invitation’s id, from the list.

Example

3f9c1a2b7d4e

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"
}
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"
}