I am trying to update a "rotation" under "schedule" using API call with no success.
I can GET/POST but cannot PATCH/PUT.
I get "Request method 'PATCH' not supported"
"Request method 'PUT' not supported"
This is the request I am trying to call:
curl -v -X PATCH \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-H "Authorization: GenieKey <mykey>" \
Hope you can help me.
Hi @Daniel Wor ,
I think your URL is missing the ID of the rotation which is causing that response of PUT and PATCH not supported: https://docs.opsgenie.com/docs/schedule-rotation-api#update-schedule-rotation-partial
Below is a test of replacing User 1 with User 6 in my test schedule. Note that in my PATCH request I have the rotation ID in my URL so it looks something like: https://api.opsgenie.com/v2/schedules/:scheduleIdentifier/rotations/:id
Hope this helps! Let us know if you have any additional questions, issues, etc.
You can also do that using Lamp ( Lamp is a Go based command line utility to interact with Opsgenie service. It provides capabilities to create and close alerts, attach files, etc..)
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...
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