I am playing around with the API - V.2016.2 - and have reach a some sort of a dead end.
I searching for jobs that have the state “running”, and thereafter extract the information about the robots that are running the job.
I am pulling out jobs via a http request to the API (https://www.uipath.com/hubfs/Documentation/OrchestratorAPIGuide_2016.2/UiPathOrchestratorAPIGuide_2016.2.html#JobDto), which is going smoothly and free of problems.
According to the API documentation the JobDto has two relations: Release and Robot - which makes absolutly perfect sense.
But how to I access this info?
The way I read the documentation, the json response I recieve from the http request should have a SimpleRobotDto property named “Robot”, but extracting it seems impossible. For example I can do this easy peasy:
json(“State”) but not json(“Robot”) or json(“RobotDto”)
This gives me an error that indicates that the property does not exist.
Is there some REST idea I’m totally missing?
According to the https://platform.uipath.com/swagger/ui/index#!/Jobs/Jobs_GetJobs docs, it should be possible, but doesnt it apply to my version (v.2016.2) ?
Hope someone out there made this work!