Hello OpsGenie Community,
I’m currently working towards integrating OpsGenie with another product and I’m trying to create a maintenance window through API.
Manually, this is done by navigating to: Teams / Policies / and creating a new maintenance window.
In the new maintenance window I’m creating, I’m using a schedule, and adding a notification policy as a rule.
When I do this manually, I can search and find the notification policy and assign it.
The issue I’m having is when I do exactly the same through API, I get a message saying that policy isn’t available:
“Policy with given id [c88d1e1f-36bd-474b-9614-74ba8b8418ae] can not be found”.
If I create the maintenance window manually, and pull the details through a REST GET - I can see the same exact policy I am using, so I know it is correct.
Has anyone encountered this issue, and how can I resolve this? I’ll give a sample POST body below.
“description”: “Test Description”,
“type” : “schedule”,