Delete an application alert
import requests
url = "https://platform.ankra.app/api/v1/org/applications/{application_id}/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/applications/{application_id}/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/applications/{application_id}/alerts/{alert_id} \
--header 'Authorization: Bearer <token>'{
"success": true,
"message": "<string>"
}{
"detail": "permission_denied",
"permission": "<string>",
"scope_type": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Alerts
Delete an application alert
Deletes an alert the application’s own routes made, with its rule, and answers as the Alerts delete does. An organisation alert, or another application’s, answers 409. Requires alerts.manage, or applications.write on the application; a viewer is refused whatever the RBAC rollout mode. Audited.
DELETE
/
api
/
v1
/
org
/
applications
/
{application_id}
/
alerts
/
{alert_id}
Delete an application alert
import requests
url = "https://platform.ankra.app/api/v1/org/applications/{application_id}/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/applications/{application_id}/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/applications/{application_id}/alerts/{alert_id} \
--header 'Authorization: Bearer <token>'{
"success": true,
"message": "<string>"
}{
"detail": "permission_denied",
"permission": "<string>",
"scope_type": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}