Start Jobs API: Set HostMachineName for defined Machine

Hello,

my company would like to use the Orchestrator API to trigger new jobs.

We have a machine with multiple hostnames connected and we need to explicitly specify which hostname to use with the Start Jobs API (/odata/Jobs/UiPath.Server.Configuration.OData.StartJobs).

I couldn’t find anything in the Swagger documentation regarding this, and I haven’t found a workaround for this issue. Is there any way to specify the Host?

Many thanks.

@grossud

Welcome to the community

you can use the machine ID…to get machine ID use get machines api

image

cheers

Hi @Anil_G ,

thanks, but i need to define the hostname as well.
As far as i can can see the get machines API does not return any ID for hostnames.

BR

@grossud

Then you can specify both machine and robot as this combination will have only one host linked to it…that should suffice your requirement

cheers

Solved it.

It is not the MachineID one has to provide but the SessionID which can be retrieved from the “GetMachineSessionRuntimes”-Endpoint.

BR

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