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.