Decline an invitation
import requests
url = "https://platform.ankra.app/api/v1/org/organisation/invites/{invite_id}/decline"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/organisation/invites/{invite_id}/decline', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://platform.ankra.app/api/v1/org/organisation/invites/{invite_id}/decline \
--header 'Authorization: Bearer <token>'{
"success": true,
"message": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Organisation
Decline an invitation
Declines a pending invitation addressed to the token’s owner. Takes a personal token with no scope allowlist and no project pin: a service-account, scoped or pinned token is refused, since no permission names this act.
POST
/
api
/
v1
/
org
/
organisation
/
invites
/
{invite_id}
/
decline
Decline an invitation
import requests
url = "https://platform.ankra.app/api/v1/org/organisation/invites/{invite_id}/decline"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/organisation/invites/{invite_id}/decline', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://platform.ankra.app/api/v1/org/organisation/invites/{invite_id}/decline \
--header 'Authorization: Bearer <token>'{
"success": true,
"message": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}