You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
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.