Problem with downloading package through orchestrator API

Hi everyone,

I’m trying to download specific package using Orchestrator HTTP Request activity. Unfortunately the activity returns error 406 “not acceptable”. However, the same call made trough swagger is successfull. There aren’t any problems with different API calls but only with this specific endpoint /odata/Processes/UiPath.Server.Configuration.OData.DownloadPackage(key={key}).

You need to use an HTTP Request activity instead.

Example:

Assign variable ReleaseKeyValue: "BlankProcess8:1.0.2"

Assign variable PathForDownload: "C:\Marian\DownloadPackages\" + String.Format("{0}.nupkg",ReleaseKeyValue).Replace(":",".")

Endpoint: String.Format("https://cloud.uipath.com/your_org_name/your_tenant_name/orchestrator_/odata/Processes/UiPath.Server.Configuration.OData.DownloadPackage(key='{0}')",ReleaseKeyValue)

Method: GET
AcceptFormat: ANY

Headers:

Authorization: Bearer + access_token
X-UIPATH-OrganizationUnitId: YOUR_FOLDER_ID
Content-Type: "application/octet-stream"
Content-Disposition: "attachment"
BodyFormat: "multipart/form-data"

image

ResourcePath: PathForDownload

image

1 Like

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