Skip to main content
DELETE
/
v2
/
orgs
/
{orgSlug}
/
invites
/
{inviteCode}
Revoke Org Invite
curl --request DELETE \
  --url https://api.studio.prisme.ai/v2/orgs/{orgSlug}/invites/{inviteCode} \
  --header 'Authorization: Bearer <token>'
const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};

fetch('https://api.studio.prisme.ai/v2/orgs/{orgSlug}/invites/{inviteCode}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
import requests

url = "https://api.studio.prisme.ai/v2/orgs/{orgSlug}/invites/{inviteCode}"

headers = {"Authorization": "Bearer <token>"}

response = requests.delete(url, headers=headers)

print(response.text)
{
  "orgSlug": "<string>",
  "id": "<string>",
  "code": "<string>",
  "roleSlug": "<string>",
  "usedCount": 123,
  "createdBy": "<string>",
  "revokedAt": "<string>",
  "revokedBy": "<string>",
  "createdAt": "<string>"
}
{
"error": "AuthenticationError",
"message": "Unauthenticated"
}
{
"error": "ForbiddenError",
"message": "Forbidden"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

orgSlug
string
required
inviteCode
string
required

Response

Success

orgSlug
string
required
status
enum<string>
required
Available options:
active,
revoked
id
string
code
string
roleSlug
string
usedCount
number
createdBy
string
revokedAt
string
revokedBy
string
createdAt
string