Orchestrator Job API returning Unexpected Results

I’m working on prototyping an RPA solution that involves working with the Orchestrator APIs.
I’ve been able to get the token and also get the list of Processes.
However, I’m having issues with the /Jobs API. Please see below.
I’m using Talend API Tester as the client.

This request works, but returns one too many results that are utterly useless.

https://platform.uipath.com/?/?/odata/Jobs?$filter=State eq 'Successful'

I take one of the results from the above call and try to apply a filter on the Jobs API to target one successful job and I get junk HTML response ! :thinking:

https://platform.uipath.com/?/?/odata/Jobs?$filter=ReleaseName eq 'Test_PrimedLogging_Thanos Environment'

Am I going wrong some place?


I try the /Jobs API again after refreshing the token, and this time I get this. But the unAuthorizedRequest indicates false. Yesterday I was able to retrieve all the jobs and today I’m getting this error on all API calls.

“message”: “You are not authenticated!”,
“errorCode”: 0,
“result”: null,
“targetUrl”: null,
“success”: false,
“error”: {
“code”: 0,
“message”: “You are not authenticated!”,
“details”: “You should be authenticated (sign in) in order to perform this operation.”,
“validationErrors”: null
“unAuthorizedRequest”: false,
“__abp”: true

API access is resolved. Unfortunately, however, I’m unable to use the list of Jobs because I will need to filter on the latest job that executed. Get it’s status and then depending on that status start another job.

I’ve thus far tried these filters. They don’t fail, but they come back with zero results:

https://platform.uipath.com/?/?/odata/Jobs?$filter=ReleaseName eq 'Test_PrimedLogging_Thanos Environment' and State eq 'Successful'

https://platform.uipath.com/?/?/odata/Jobs?$filter=State eq 'Successful' and StartTime eq 2019-12-10T06:44:05.917Z

This one with a greater than filter on the start time again, returns a large batch of jobs that really isn’t practical for me under the circumstances:

https://platform.uipath.com/?/?/odata/Jobs?$filter=State eq 'Successful' and StartTime gt 2019-07-30T07:10:22.603Z