Powershell example to change OnCall Schedule

Looking for Powershell API example to change OnCall schedule for users within PagerDuty.

Hi Curtis,

Thanks for reaching out!

Our online REST API documentation has an interactive section where you can make API calls similarly to how you would in Postman. Part of that functionality is a code generator that will provide you with the equivalent code in cURL, Python, PowerShell, and other languages. I’ve included a screenshot below for your reference -

Here is a direct link to our documentation on the PUT endpoint for schedules - https://developer.pagerduty.com/api-reference/reference/REST/openapiv3.json/paths/~1schedules~1{id}/put

Please let me know if this is helpful or you have additional questions.


Alex Engelmann
Technical Support Specialist