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?
Welcome to the community
you can use the machine ID…to get machine ID use get machines api
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.
Then you can specify both machine and robot as this combination will have only one host linked to it…that should suffice your requirement
It is not the MachineID one has to provide but the SessionID which can be retrieved from the “GetMachineSessionRuntimes”-Endpoint.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.