Stop an SC Orchestrator 2022 Runbook via JSON based Web API

McDaniel, Dave 71 Reputation points

Has anyone had any luck stopping a running 2022 Orch runbook job via Powershell Invoke-RestMethod? If so, what method did you use, and how did you structure the request?

System Center Orchestrator
System Center Orchestrator
A family of System Center products that provide an automation platform for orchestrating and integrating both Microsoft and non-Microsoft IT tools.
219 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,455 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. McDaniel, Dave 71 Reputation points

    I figured this out from running debug on the console. It is fairly straightforward. The method is "Patch" and no JSON body is necessary. Below is my example. I hope this helps someone else.

    0 comments No comments