Orchestrator Job Search API

I am trying to use the Orchestrator Job Search API.

After searching the folders, extract each folder ID.

You must add the “X-UiPath-OrganizationUnitId” header value as the folder ID.

Then, you have to search for each folder.

But I want to query all folders at once.

Is there a way?

@_dexter,

To retrieve all jobs across all folders in UiPath Orchestrator using the Orchestrator Job Search API, you need to utilize the /odata/Jobs endpoint and filter the jobs based on your requirements.

Here’s an example of how you can make the API request to retrieve all jobs:

GET /odata/Jobs HTTP/1.1
Host: your_orchestrator_url
Authorization: Bearer your_access_token

Make sure to handle pagination if there are more jobs than what’s returned in the initial response. You can do this by using the $skip and $top parameters in subsequent requests.

Thanks,
Ashok :slight_smile:

@ashokkarale
Hello
If this value X-UiPath-OrganizationUnitId is not present in the header, the error below will occur.

“message”: “An organization unit is required for this action.”,