Get current job in progress API

Hi. I need to get the current job running in my orchestrator throw API. I am making this query:

/odata/Jobs?$top=30


(today is 27th November)

but the results I am getting doesn’t give me the current job (the Start Processing dates are in May!!). I need the list of jobs of “today” to filter by Status… Any idea?

Please help!!!

We would suggest that nex explorations are done within swagger and recommend to further explore

  • orderBy
  • Filter

parameters for more defining the REST Call

Hi @ajgb

You can use

/odata/Jobs?$filter=State%20eq%20'Running'&%24top=30

Take a look at Swagger definition

https://cloud.uipath.com/{your_org}/{your_tenant}/orchestrator_/swagger/index.html#/Jobs/Jobs_Get

This gives me a 400 error

A 400 indicates your query may be misconfigured. Please share how you have set it up.

To add on to earlier answers, if going by “Today” is the main requirement, you could also look to input the current date in UTC to a filter such as “CreationTime” or "EndTime"l:


View from Swagger

I figured out the problem, I was missing single quotes around the value of the parameter, e.g. the value running in the screenshot below from the swagger page

1 Like