Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to add maintenace for team policy via API

I have a policy created for a team, but I cannot add a maintenance window to enable this policy as I can for global policies, using this API: https://docs.opsgenie.com/docs/maintenance-api

I always get the response that the policy cannot be found even though I've just looked up the policy using the /v2/policies/alert?teamId=<team guid> endpoint.

Is this possible to achieve through the API, I can do it via the UI

1 answer

0 votes
Nick H Atlassian Team May 27, 2021

Hi @Matt Browne ,

Yes this should be possible, but you probably want to use the API key on an API integration assigned to this same team.

Try this, and let us know whether or not that works!

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Opsgenie

Leveraging Atlassian’s Opsgenie and AWS Cloudformation Registry to stay ahead of incidents

In the past, managing IT infrastructure was a hard job. It required a lot of manual effort and it was hard to keep track of all the necessary information (monitoring, scalability etc). Thankfully, as...

2,420 views 0 13
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you