I've made a successful API call using the integration key to create alert. It is possible to close the alert using the user api key?
With this command
curl -X POST https://api.opsgenie.com/v2/alerts/xxxxxxxxxxxxxxxxxxxxxxx/close?identifierType=id
-H "Authorization: GenieKey xxxxxxUserApiKeyxxxxxxxx"
-H "Content-Type: application/json"
-d '{ "user":"Monitoring Script", "source":"AWS Lambda", "note":"Action executed via Alert API" }'
Then returns the error:
Create alert by this command
curl -X POST https://api.opsgenie.com/v2/alerts -H "Content-Type: application/json" -H "Authorization: GenieKey xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" -d '{
Here's the link and API used is correct
https://docs.opsgenie.com/docs/alert-api#close-alert
Follow the link here to create API key for alerts
Thanks,
Pramodh
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.