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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.