Finally, it works as follows.
- Get the authentication token as normal.
- Get the Releases by calling odata/Releases
- Pick the ‘Key’ corresponding to the process we are interested to run StartJobs
- Then, assemble the json for startInfo to call StartJobs as follows (example)
{
“startInfo”: {
“RobotIds”: [
19
],
“NoOfRobots”: 0,
“Strategy”: “Specific”,
“ReleaseKey”: “39c12b32-4547-495e-87b2-52f70f747840”
}
} - It worked only after making NoOfRobots to 0. More details shall be read from the Model and Examples of the swagger documentation provided by API.
The missing link/ clarity here is that, nowhere it’s clearly explained in the documentation the Key to be used in calling StartJobs is the Release key (Processes).