Acknowledge an alert trigger
import requests
url = "https://platform.ankra.app/api/v1/org/alerts/{alert_id}/triggers/{trigger_id}/acknowledge"
payload = { "notes": "<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({notes: '<string>'})
};
fetch('https://platform.ankra.app/api/v1/org/alerts/{alert_id}/triggers/{trigger_id}/acknowledge', 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/alerts/{alert_id}/triggers/{trigger_id}/acknowledge \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"notes": "<string>"
}
'{
"success": true,
"message": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Alerts
Acknowledge an alert trigger
Acknowledges a firing alert trigger as the token’s user, with optional notes, and records it in the audit log. Requires the alerts.write permission. The body may be empty.
POST
/
api
/
v1
/
org
/
alerts
/
{alert_id}
/
triggers
/
{trigger_id}
/
acknowledge
Acknowledge an alert trigger
import requests
url = "https://platform.ankra.app/api/v1/org/alerts/{alert_id}/triggers/{trigger_id}/acknowledge"
payload = { "notes": "<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({notes: '<string>'})
};
fetch('https://platform.ankra.app/api/v1/org/alerts/{alert_id}/triggers/{trigger_id}/acknowledge', 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/alerts/{alert_id}/triggers/{trigger_id}/acknowledge \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"notes": "<string>"
}
'{
"success": true,
"message": "<string>"
}{
"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