Hello - I'm trying to close an alert using the API call curl -X POST https://api.opsgenie.com/v2/alerts/<alias_here>/close?identifierType=alia
My alert looks like
My API call looks like
POST https://api.opsgenie.com/v2/alerts/00fb592a-96fc-4bff-8b94-e8839d10f000/close?identifierType=alias
Response:
{
"result": "Request will be processed",
"took": 0.007,
"requestId": "1c96097d-93b7-47af-a9fb-e2cdf5dd070d"
}
But alert was never closed.
I tried to add note, acknowledge alert using alias and it worked as expected, only 'close' action does not work.
Please, help to resolve this issue. Thank you!
Hello @Aditya Bodke
I set up filer in the integration Like the followed Than, before I make 'close' call, I update message to make sure that it contains 'Resolved' and after that I make 'close' call, and it works. It did not work other way.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Happy Friday Anna!
Thank you so much sharing your solution with the community.
Best Regards,
Aditya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Anna!
Thank you for reaching out to the Opsgenie community!
I understand that you were facing an issue with closing an alert using the close alert API , and I’m glad to hear it’s now resolved.
The API endpoint you used is correct and should work as expected:
https://api.opsgenie.com/v2/alerts/<alias_here>/close?identifierType=alias
Just as a reminder, the close action only works on open alerts. If the alert is already closed or doesn’t exist, the API will respond as if the request is processed, but no changes will occur.
If you don’t mind sharing, could you let us know what resolved the issue? It might help others in the community who run into a similar problem.
Best Regards,
Aditya
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.