- Getting Started
- Swagger Definition
- Orchestrator APIs
- Alerts Requests
- Assets Requests
- Calendars Requests
- Environments Requests
- Folders Requests
- Generic Tasks Requests
- Jobs Requests
- Libraries Requests
- License Requests
- Packages Requests
- Permissions Requests
- Personal Workspaces Requests
- Processes Requests
- Process Data Retention Policy Requests
- Queue Items Requests
- Queue Retention Policy Requests
- Robots Requests
- Roles Requests
- Schedules Requests
- Settings Requests
- Storage Bucket Requests
- Tasks Requests
- Task Catalogs Requests
- Task Forms Requests
- Tenants Requests
- Transactions Requests
- Users Requests
- Webhooks Requests
Orchestrator API Guide
Building API Requests
https://govcloud.uipath.us/{organizationName}/{tenantName}/orchestrator_
. It is recommended to encrypt the data you send via API calls, by using the HTTPS
protocol.
FolderId
, FolderPath
, or FolderKey
in an HTTP header. This header may be encoded (using Base64 UTF-16LE encoding) or plain text.
For example:
-
X-UIPATH-OrganizationUnitId "FolderId"
, -
X-UIPATH-FolderPath-Encoded "{Encoded FolderPath value}"
, -
X-UIPATH-FolderPath "PlainText FolderPath value"
, or -
X-UIPATH-FolderKey "FolderKey"
.
FolderId
can be obtained by performing a GET request to the /odata/Folders
endpoint and copying the "Id" value, or from the Orchestrator URL - https://your-domain-server.com/?
fid=2032
&tid=8
. FolderId
is of type Int 64.
FolderKey
can be obtained by performing a GET request to the /odata/Folders
endpoint and copying the "Key" value. FolderKey
is of type Unique Id/String.
FolderId
value also changes, whereas the FolderKey
value remains the same.
If you upgraded and had Organization Units enabled in your previous Orchestrator instance, each OU is migrated as a new Classic folder.
X-UIPATH-FolderPath-Encoded
header, as follows:
- Path starting with
/
- starts from theroot
folder of the tree the ambient folder is part of. - Path starting with
.
- starts from the ambient folder. - Path starting with
..
- starts one level up in the hierarchy of the ambient folder for each..
in the path (e.g.../
for one level up,../../
for two levels up in the hierarchy).
Note that trailing slashes are not accepted.
GET requests are usually the simplest ones to make. They help you retrieve data and use generic OData clauses:
- $top
- $filter
- $expand
- $select
- $orderby
- $skip
This clause helps you limit the amount of data you retrieve. It has an upper cap that is determined by the endpoint you are making calls to and the number of such resources that exist on you Orchestrator instances.
https://govcloud.uipath.us/{organizationName}/{tenantName}/orchestrator_/odata/Environments?$top=10
returns the first 10 environments available in the Community Edition of Orchestrator. However, if only 5 environments exist,
only those are retrieved.
This OData clause is used to filter a specific resource according to its properties.
For example, one can filter according to:
- numeric properties:
https://govcloud.uipath.us/{organizationName}/{tenantName}/orchestrator_/odata/Environments?$filter=Id%20eq%2015
- requests a specific environment based on its Id
- text properties:
https://govcloud.uipath.us/{organizationName}/{tenantName}/orchestrator_/odata/Environments?$filter=contains(Name,'N')&$top=10
- returns the first 10 environments whose name contains the letter "N"
- boolean properties:
https://govcloud.uipath.us/{organizationName}/{tenantName}/orchestrator_/odata/Processes?$filter=Title%20eq%20'test'%20%26%20IsLatestVersion%20eq%20true
- returns all processes that contain the word "test" and represent the latest version
- enumerable properties:
https://govcloud.uipath.us/{organizationName}/{tenantName}/orchestrator_/odata/QueueItems?$filter=Priority%20eq%20'High'
- returns all queue items that have a High priority
- the propery of a property:
https://govcloud.uipath.us/{organizationName}/{tenantName}/orchestrator_/odata/Jobs?$top=10$filter=Robot/MachineName%20eq%20'Documentation'
- returns the first 10 jobs that were executed by any Robot that exists on the "Documentation" machine
Filter parameters can be combined using logical operators "and", "or" and/or "not" and can be grouped with parentheses "( )", such as the following request:
https://govcloud.uipath.us/{organizationName}/{tenantName}/orchestrator_/odata/Jobs?$top=10&$filter=Robot/MachineName eq 'LAVINIA-PC' and (not(Source eq 'Manual') or StartTime gt 2017-10-28T12:13:00.07Z)
- displays the top 10 jobs that are being executred manually or after "2017-10-28T12:13:00.07Z", by a Robot deployed on the "LAVINIA-PC" machine.
Known issue
null
do not work. For example, using the Release ne
null
expression returns an error, because Release
is a
complex object which includes its own nested properties.
In such cases, we recommend replacing the complex object with a simple object.
- You can replace
Release ne null
withReleaseName ne null
, asReleaseName
is an existing simple object.Note: You cannot replaceMachine ne null
withMachineName ne null
, asMachineName
does not exist. - You can use a nested property on the complex object for comparison. For
instance,
Release/Name ne null
can replaceRelease ne null
, andMachine/Name ne null
can replaceMachine ne null
.
This OData clause enables you to specify a subset of resource properties that you want to be returned. If you want to extract multiple resources, you can separate them by using a comma.
$orderby
clause enables you to sort retrieved resources. As with the $select
clause, the resources you want to order by are separated by commas, and they can be sorted in an ascending (asc
) or descending (desc
) order. If neither of these operators are specified, resources are automatically sorted in an ascending manner.
The POST HTTP verb helps you create new items, subordinate to other resources. When creating a new resource, POST to the parent, and Orchestrator takes care of associating the new resource with the parent, assigning an ID, and other required information. The data is added through the body of the request, and the response is the entire created object.
You can add new items to a queue, create new assets, environments or processes, assign a reviewer to one or multiple failed transactions, and the list goes on.
"Parameter@odata.type": "#String"
. For a better understanding, please see how the Specific Content
parameter was populated in the example below.
Id
in the URL. Note that a PUT call replaces the existing entity with the contents of the request or, if none exists at the
designated location, attempts to create it.
It is possible to update queues, environments, organization units, comments on transactions, processes and other resources' details.
Id
in the URL. The body of the request contains only those contents that you want to change. This is distinguished from a PUT
call which replaces the current entity with the contents of the subsequent request.
It is possible to use a PATCH request to update Machines, Processes, Robots, Tenants, Users (except the Organization Unit and Roles), and Webhooks entities.
Using this HTTP verb enables you to mark a specified item as deleted in the database. The resource is usually indicated with the help of its Id in the URL you make the call to. A 204 response should let you know that your request was successful.
It is possible to delete assets, environments, queue item comments, processes, roles, tenants, users and many others.