Bind a Microsoft Teams tenant
import requests
url = "https://platform.ankra.app/api/v1/org/teams/bind"
payload = { "claim_code": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({claim_code: '<string>'})
};
fetch('https://platform.ankra.app/api/v1/org/teams/bind', 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/teams/bind \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"claim_code": "<string>"
}
'{
"success": true,
"tenant_id": "<string>",
"tenant_name": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Notifications
Bind a Microsoft Teams tenant
Binds the Microsoft Teams tenant behind a claim code the Ankra Teams bot handed out to the organisation the token acts in. 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, since the integration belongs to the whole organisation.
POST
/
api
/
v1
/
org
/
teams
/
bind
Bind a Microsoft Teams tenant
import requests
url = "https://platform.ankra.app/api/v1/org/teams/bind"
payload = { "claim_code": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({claim_code: '<string>'})
};
fetch('https://platform.ankra.app/api/v1/org/teams/bind', 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/teams/bind \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"claim_code": "<string>"
}
'{
"success": true,
"tenant_id": "<string>",
"tenant_name": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}