Hi, I'm wondering how I can delay the alert notification from a created alert via the API. If I create an alert using the API, is there a parameter I can pass in to only allow it to notify the responder/s by a certain time, or do I have to use the snooze alert functionality? If so, if I create an alert and then snooze it via the API, will the responder/s still get notified before the snooze alert function goes through?
Hey @Reetesh Sudhakar
Thanks for reaching out to Atlassian Community!
I'm afraid that there's no way to delay notifications for a specific alert using API. What you can do instead is to use our Notifications policy and delay or snooze specific alerts. Please see - https://support.atlassian.com/opsgenie/docs/create-and-manage-team-alert-policies/
This has to be done manually under the team's policies or using our API here - https://docs.opsgenie.com/docs/alert-and-notification-policy-api#create-policy
I hope this helps.
Best Regards,
Egor
Hi, wanted to follow up on this. Is there a way to delay or snooze alerts that meet certain conditions if they are not team specific (a global policy)? The alerts that I'm creating with the API go out through multiple teams, so I wanted to see if there was a way to achieve this. Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Quick follow-up to that - I tried creating an alert, snoozing it, and then assigning myself as a responder using the API. Snoozing the alert should have muted the notifications, but I still kept getting them even after the alert was snoozed. Is there something that I should change in the workflow to ensure that snoozing the alert works?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.