Revoke an invitation
import requests
url = "https://platform.ankra.app/api/v1/org/organisation/invites/{invite_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/organisation/invites/{invite_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request DELETE \
--url https://platform.ankra.app/api/v1/org/organisation/invites/{invite_id} \
--header 'Authorization: Bearer <token>'{
"success": true,
"message": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Organisation
Revoke an invitation
Revokes a pending invitation of the organisation the token acts in. Requires members.invite; an invitation of any other organisation answers 404. Pending invitations and their invite_id are listed in the users of Get organisation details.
DELETE
/
api
/
v1
/
org
/
organisation
/
invites
/
{invite_id}
Revoke an invitation
import requests
url = "https://platform.ankra.app/api/v1/org/organisation/invites/{invite_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/organisation/invites/{invite_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request DELETE \
--url https://platform.ankra.app/api/v1/org/organisation/invites/{invite_id} \
--header 'Authorization: Bearer <token>'{
"success": true,
"message": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Headers
Act in another organisation the token's owner is an active member of; defaults to the token's own organisation.