Disconnect a Microsoft Teams tenant
import requests
url = "https://platform.ankra.app/api/v1/org/teams/integration"
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/teams/integration', 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/teams/integration \
--header 'Authorization: Bearer <token>'{
"success": true,
"revoked_token_count": 123
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Notifications
Disconnect a Microsoft Teams tenant
Disconnects a Microsoft Teams tenant from the organisation the token acts in and revokes the tokens its links held. Only an organisation administrator may; a token with a scope allowlist must also carry organisation.manage, and a token pinned to a project is refused.
DELETE
/
api
/
v1
/
org
/
teams
/
integration
Disconnect a Microsoft Teams tenant
import requests
url = "https://platform.ankra.app/api/v1/org/teams/integration"
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/teams/integration', 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/teams/integration \
--header 'Authorization: Bearer <token>'{
"success": true,
"revoked_token_count": 123
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}