Missed Team ’24? Catch up on announcements here.

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

How to add maintenace for team policy via API

Matt Browne May 27, 2021

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
Atlassian Team members are employees working across the company in a wide variety of roles.
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
AUG Leaders

Atlassian Community Events