How to add two machine specific ids for API related requests

I have 3 Production bots. I want one api related usecase to go only to 2 bots. How can i achieve it. I have done the changes for 1 machine id and its working but how to add 2 machine ids.

{
“startInfo”: {
“ReleaseKey”: “relese key”,
“Strategy”: “ModernJobsCount”,
“JobsCount”: 1,
“InputArguments”: “{}”,
“MachineRobots”: [
{
“MachineID”: 6,
“RobotID”: 1
}
]
}
}

Kindly help :slight_smile:

Hi!

You should be able to just add more Machine robots like this:

{
“startInfo”: {
“ReleaseKey”: “relese key ”,
“Strategy”: “ModernJobsCount”,
“JobsCount”: 1,
“InputArguments”: “{}”,
“MachineRobots”: [
{
“MachineID”: 6,
“RobotID”: 1
},
{
“MachineID”:9999,
“RobotID”:9999
}
]
}
}

after following above, i’m getting this error :
{
“message”: “Couldn’t find the specified unattended user/robot in the current folder.”,
“errorCode”: 1671,
“resourceIds”: null
}

Use the Inspect tool in the browser → Network and replicate the same while doing in Orchestrator UI.

In the end, you will be able to retrieve the correct Rest API call and Rest API body details.

this is working now with below code But same jobid is getting trigger on 2 machines. I need to add 2 different jobs to be executed on 2 different machine to balance the load.

{
“startInfo”:
{
“ReleaseKey”: “relesekey”,
“JobsCount”: 1,
“JobPriority”: “Normal”,
“Strategy”: “ModernJobsCount”,
“RuntimeType”: “Unattended”,
“InputArguments”: “{"…InputDetails…”}",
“MachineRobots”: [
{
“RobotId”: 1,
“MachineId”: 2
},
{
“RobotId”: 1,
“MachineId”: 6
}
]
}
}

Kindly help :slight_smile:

Maybe increase JobsCount to 2?