Download package from Orchestrator using API

Hello,

Is it possible to download package from the orchestrator using API? (not with the download button)
I can upload one with “odata/Processes/UiPath.Server.Configuration.OData.UploadPackage()” and activate it but i can’t found the download request.

The purpose is deployment from test environment to production environment.

Thanks

Hi @silverspike

Could you please share how you uploaded the package. I can’t get the options straight…

Any update on this?

Yes, it’s resolved.
Check
https://docs.uipath.com/orchestrator/reference#section-downloading-a-specific-package-version
or
https://your-orchestrator-url/swagger/ui/index#!/Processes/Processes_DownloadPackageByKey

You might also want to consider the Orchestrator API Powershell Scripts GitHub - UiPath/orchestrator-powershell: UiPath Orchestrator PowerShell cmdlet library

Did not find the code to download package on the mentioned github?

Is there a way to activate the Uploaded packages in the orchestrator via API

Hi
yeah its possible @silverspike i will send one link fallow that one

Hi
i am downloading packages from Orchestrator using API but that package was invalid so please tell any one solution…

You need to set the end point URL to OrchestartorUrl + “/odata/Processes/UiPath.Server.Configuration.OData.DownloadPackage(key=‘:’)”. Then the BodyFormat must be multipart/form-data. Hope that helps

Hi Surya,

I am using OrchestratorHttp api request to download package from the orchestrator. i get binary result in response but not sure how to retrive nupkg file from it.

can you please suggest solution if you already know about this. Thank you!

Depends on the Orchestrator version. I have done this with 2019 version before. If you are using 2019 version, I can help you.

mine is 2021.10.0, did you use orchestrtor http request?

According to the research I did, Orchestrator HTTP calls are not designed downloading the packages. Only swagger is and with 2020.x version onward, the swagger syntax has changed and is not backward compatible. It broke my old code and I have to spend some time figuring it out with the new version.

Hi @venu_p1

can you share the xaml? i am as well trying to download the package from orchestrator but i am not able to get what i am doing wrong. It would be helpful if you can share the xaml