Preview Notification Routes Endpoint
import requests
url = "https://platform.ankra.app/api/v1/org/notifications/routes/preview"
payload = {
"kind": "<string>",
"severity": "<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({kind: '<string>', severity: '<string>'})
};
fetch('https://platform.ankra.app/api/v1/org/notifications/routes/preview', 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/notifications/routes/preview \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"kind": "<string>",
"severity": "<string>"
}
'{
"kind": "<string>",
"severity": "<string>",
"cluster_id": "<string>",
"source_id": "<string>",
"alert_id": "<string>",
"routable": true,
"routable_reason": "<string>",
"deliveries": [
{
"destination_id": "<string>",
"destination_name": "<string>",
"via": "<string>",
"route_id": "<string>",
"reason": "<string>"
}
],
"suppressed": [
{
"destination_id": "<string>",
"destination_name": "<string>",
"via": "<string>",
"route_id": "<string>",
"reason": "<string>"
}
],
"route_evaluations": [
{
"route_id": "<string>",
"destination_id": "<string>",
"priority": 123,
"mode": "<string>",
"stop_on_match": true,
"matched": true,
"outcome": "<string>",
"reason": "<string>"
}
],
"home_destination_used": true
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Notifications
Preview Notification Routes Endpoint
POST
/
api
/
v1
/
org
/
notifications
/
routes
/
preview
Preview Notification Routes Endpoint
import requests
url = "https://platform.ankra.app/api/v1/org/notifications/routes/preview"
payload = {
"kind": "<string>",
"severity": "<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({kind: '<string>', severity: '<string>'})
};
fetch('https://platform.ankra.app/api/v1/org/notifications/routes/preview', 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/notifications/routes/preview \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"kind": "<string>",
"severity": "<string>"
}
'{
"kind": "<string>",
"severity": "<string>",
"cluster_id": "<string>",
"source_id": "<string>",
"alert_id": "<string>",
"routable": true,
"routable_reason": "<string>",
"deliveries": [
{
"destination_id": "<string>",
"destination_name": "<string>",
"via": "<string>",
"route_id": "<string>",
"reason": "<string>"
}
],
"suppressed": [
{
"destination_id": "<string>",
"destination_name": "<string>",
"via": "<string>",
"route_id": "<string>",
"reason": "<string>"
}
],
"route_evaluations": [
{
"route_id": "<string>",
"destination_id": "<string>",
"priority": 123,
"mode": "<string>",
"stop_on_match": true,
"matched": true,
"outcome": "<string>",
"reason": "<string>"
}
],
"home_destination_used": true
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Response
Successful Response
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes