Delete an alert
import requests
url = "https://platform.ankra.app/api/v1/org/alerts/alerts/{alert_id}"
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/alerts/alerts/{alert_id}', 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/alerts/alerts/{alert_id} \
--header 'Authorization: Bearer <token>'{
"success": true,
"message": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Alerts
Delete an alert
Deletes an alert definition with its rules and integration links. Requires the alerts.manage permission.
DELETE
/
api
/
v1
/
org
/
alerts
/
alerts
/
{alert_id}
Delete an alert
import requests
url = "https://platform.ankra.app/api/v1/org/alerts/alerts/{alert_id}"
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/alerts/alerts/{alert_id}', 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/alerts/alerts/{alert_id} \
--header 'Authorization: Bearer <token>'{
"success": true,
"message": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}