Start jobs via API

Finally, it works as follows.

  1. Get the authentication token as normal.
  2. Get the Releases by calling odata/Releases
  3. Pick the ‘Key’ corresponding to the process we are interested to run StartJobs
  4. 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”
    }
    }
  5. 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).

5 Likes