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
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
I am currently trying to add a lot (80+) of new Integration Actions to an Integration via the Integration API. The Docs demonstrate only one Action per request. That's too many requests for the API.
Is there a way to send a single request with a JSON array of Integration Actions, or what other options do I have in this scenario?
Thanks for any insight.
Hi @Joel Bradley ,
There isn't a way to create multiple resources in Opsgenie with a single API request. For creating integration alert actions, you need to send 1 request per action. I'm not sure what/how you're creating these requests via API, but you could write a script to loop through the list of actions to create, and send a request for each one.
Please let me know if you have more questions on this.
The request limit seems to have been raised. All requests are now making it through. Thank you.
Thanks for your response.
That is my current solution, iterating through a list of Integration Actions, but I'm getting rejected by the API after 40 or so iterations with error 429 for too many requests sent.
I could set a wait timer after 30 or so requests, but that is obviously not ideal. I was just wondering if there were any other solutions someone could think of.