Set my Microsoft Teams completion notifications
import requests
url = "https://platform.ankra.app/api/v1/org/teams/me"
payload = {
"tenant_id": "<string>",
"notify_on_completion": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({tenant_id: '<string>', notify_on_completion: true})
};
fetch('https://platform.ankra.app/api/v1/org/teams/me', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request PATCH \
--url https://platform.ankra.app/api/v1/org/teams/me \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"tenant_id": "<string>",
"notify_on_completion": true
}
'{
"success": true
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Notifications
Set my Microsoft Teams completion notifications
Turns the completion notifications of the token’s owner’s own Teams link on or off. Takes a personal token with no scope allowlist and no project pin: a service-account, scoped or pinned token is refused.
PATCH
/
api
/
v1
/
org
/
teams
/
me
Set my Microsoft Teams completion notifications
import requests
url = "https://platform.ankra.app/api/v1/org/teams/me"
payload = {
"tenant_id": "<string>",
"notify_on_completion": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({tenant_id: '<string>', notify_on_completion: true})
};
fetch('https://platform.ankra.app/api/v1/org/teams/me', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request PATCH \
--url https://platform.ankra.app/api/v1/org/teams/me \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"tenant_id": "<string>",
"notify_on_completion": true
}
'{
"success": true
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}