How does one delete an escalation via api?

sergey_green February 4, 2025

Deal bloatware makers!
The question is in the title.


Following the the write-up on escalations api here; https://docs.opsgenie.com/docs/escalation-api

curl -X DELETE 'https://api.eu.opsgenie.com/v2/escalations/6de33170-7948-4872-afa3-a8c4654c17f5' --header "Authorization: GenieKey ${token}"

{"message":"Escalation cannot be modified. Please remove it from teams: [Test-Schedule]","took":0.065,"requestId":"40bd3e49-edf1-4a28-a85a-f39ef857c3c0"}

Is not modifying done through patching, not deliting? Any bright people there?

 

1 answer

1 vote
Nayan Pandey
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 5, 2025

Hello Sergey, 

Thank you for contacting the Opsgenie community.

I understand that you are getting an error when trying to delete an escalation using APIs. 

As per the error, I see that this escalation is used by a team. You'd first need to remove the escalation from any team that may be using it. In your case, its the 'Test-Schedule'. 

Please let me know if the above helps. 

Regards, 

Nayan

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
TAGS
AUG Leaders

Atlassian Community Events