Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,555,545
Community Members
 
Community Events
184
Community Groups

Postman - How to use wild card for deletion of Maintenace

Hello again!
I had great success with my first question about setting up Opsgenie/Postman for maintenances and ran into another issue I need help with. Beginner with postman so I'm learning, and this community has been amazing at helping me.

I can now delete/create/change etc maintenances with Postman but at face value i can only do 1 at a time. How can I delete all maintenances or only delete "type" "past" ones?

Second question I have is how to create multiple time frames in intervals? I.E. I have to mute an integration 3 times day at specific times for say 3 months. I think the best way is to use collections runs? I have yet to try it but wanted input first.

Thanks!

I have a feeling its somewhere in here but not sure what to us in place of id for a wildcard

2022-08-18_17-03-59.png

1 answer

1 accepted

0 votes
Answer accepted
Agaci Avinas
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Aug 22, 2022
I am Agaci from Atlassian support.
I understand that you would like to delete multiple maintenance at once. In this case, you'll have to make two API calls, list past maintenance and delete them by iterating through the maintenance id listed in the response. 
Regarding the second question to schedule the maintenance repeated intervals. You could either have a cron job running everyday to add the maintenance or you could create a script to loop add and all the maintenance all at once.
If you would like to learn the method to do this via postman I would suggest you to check with Postman support.
Regards,
Agaci

I was hoping there was a way to delete the maintenances in bulk rather than one at a time, as we have like 100+ to delete

Agaci Avinas
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Aug 22, 2022

Hey @Derek Stevenson ,

Good day!

I understand that, unfortunately we do not have any API end point to delete the Past maintenance in bulk.

However, I have created a feature request on your behalf. You could view and vote for the feature using below link,

https://jira.atlassian.com/browse/OPSGENIE-813

Regards,

Agaci 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events