Delete an application alert (browser session)
import requests
url = "https://api.platform.ankra.app/org/applications/{application_id}/alerts/{alert_id}"
headers = {"cookie": "ankra_session="}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {cookie: 'ankra_session='}};
fetch('https://api.platform.ankra.app/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://api.platform.ankra.app/org/applications/{application_id}/alerts/{alert_id} \
--cookie ankra_session={
"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 (browser session)
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
/
org
/
applications
/
{application_id}
/
alerts
/
{alert_id}
Delete an application alert (browser session)
import requests
url = "https://api.platform.ankra.app/org/applications/{application_id}/alerts/{alert_id}"
headers = {"cookie": "ankra_session="}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {cookie: 'ankra_session='}};
fetch('https://api.platform.ankra.app/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://api.platform.ankra.app/org/applications/{application_id}/alerts/{alert_id} \
--cookie ankra_session={
"success": true,
"message": "<string>"
}{
"detail": "permission_denied",
"permission": "<string>",
"scope_type": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}