Specify HostName in StartJobs API

I’m currently starting my process via API. It is working fine when we have one machine allocated for the automation. But if we have two or more machine allocated. how can we specify the Machine name to start jobs API? I tried doing this but it is not working.

{
    "startInfo": {
        "ReleaseKey": "{{releaseKey}}",
        "Strategy": "ModernJobsCount",
        "JobsCount": 1,
        "InputArguments": "{\"status\":\"Sold\"}",
        "MachineName": "your_machine_name_here"
    }
}

Any help would be appreciated.

@Bankei-dev

The format of json required is here

Check the swagger for more details

https://orchestratorurl/swagger/index.html#/Jobs/Jobs_StartJobs

Cheers

1 Like

Thank you @Anil_G . I see we need MachineSessionIds to specify the machine we need to run the process. But one thing does this MachineSessionIds can eventually be changed ? Because instead of calling this api everytime I was thinking to save this Id somewhere and run if it doesn’t change in future.

@Bankei-dev

You can give machine name…check screenshot which I expanded

Under machinerobots you have machine name option

Cheers

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.