Where can I find X-UIPATH-OrganizationUnitId? What is it?

I am tyrying to start a job using rest API on community platform “odata/Jobs/UiPath.Server.Configuration.OData.StartJobs” and why I am getting this error code

{
  "message": "An organization unit is required for this action.",
  "errorCode": 1101,
  "traceId": "00-56c1b9276bc72482487d203b1083d14a-80ab92ea7027b2ef-00",
  "resourceIds": null
}

and may I know where can I find X-UIPATH-OrganizationUnitId? What is it?

Hey @hjie30

Organization ID can be found in your cloud orchestrator link, the pattern is like this:
https://cloud.uipath.com/organizationid

It also can be found via admin panel:
Admin->Tenants->Tenant_Name->Orchestrator->Api Access.
When you open it there is a organizationunit id present

May I know which one? I am looking for X-UIPATH-OrganizationUnitId not organization ID, are they same?

Hi!

Have a view on this docs for better understanding…

https://docs.uipath.com/orchestrator/reference/jobs-requests

Regards,
NaNi

Sorry, right, it’s the folder ID.

You can get it by running API call on folders. In response you get all the folders and their respective ID’s.

https://cloud.uipath.com/org/tenant/orchestrator_/swagger/index.html#/Folders/Folders_Get

1 Like

Hi @hjie30

When you open your orchestrator you will see the fid in url …that is the xorg id that you need to use

Cheers

Alright, that helped me but the guide seem a bit out of date, we cannot longer use Strategy “All” for modern folder.

Alright that works, <https://cloud.uipath.com/fusiokqlpuli/DefaultTenant/orchestrator_/?tid=*******&fid=*******>

Got it the fid

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.