Ok, looking at the new model for the StartJobs call, available here:
inline_model_21 {
startInfo (StartProcessDto, optional)
}StartProcessDto {
ReleaseKey (string):
The unique key of the release associated with the process. ,
Strategy (string, optional):
States which robots from the environment are being run by the process. = ['All', 'Specific', 'RobotCount', 'JobsCount']stringEnum:"All", "Specific", "RobotCount", "JobsCount",
RobotIds (Array[integer], optional):
The collection of ids of specific robots selected to be run by the current process. This collection must be empty only if the start strategy is not Specific. ,
NoOfRobots (integer, optional):
DEPRECATED. Number of pending jobs to be created in the environment, for the current process. This number must be greater than 0 only if the start strategy is RobotCount. ,
JobsCount (integer, optional):
Number of pending jobs to be created in the environment, for the current process. This number must be greater than 0 only if the start strategy is JobsCount. ,
Source (string, optional):
The Source of the job starting the current process. = ['Manual', 'Schedule']stringEnum:"Manual", "Schedule",
InputArguments (string, optional):
Input parameters in JSON format to be passed to job execution.
}
I’ve remembered wrong - the Strategy should be RobotCount
, not NumberOfRobots
(which is used as the property name in the activity StartJob
, but not in the API).
Also these API calls have changed since I last needed to write anything against it (~2016.2) and it looks like RobotCount
is deprecated now (indirectly - what’s deprecated is NoOfRobots
, which is required for it to work).
Could you check with a call like this?
{
"startInfo": {
"ReleaseKey": "eda84b28-65a0-489f-b9a1-495db122a35d",
"RobotIds": [ ],
"JobsCount": 1,
"Strategy": "JobsCount",
"Source": "Manual"
}
}