Can't use the UploadPackage query with "Orchestrator HTTP Request" activity

Hello!
I’m trying to make a query like this “/odata/Processes/UiPath.Server.Configuration.OData.UploadPackage”
to upload the package into Orchestrator.
I’m using this arguments:
{
“Content-Disposition”: “form-data”,
“name”: “file”,
“filename”: “ШаблонSpeedrun.1.0.1.nupkg”,
“Content-Type”: “application/octet-stream”
}
The file “ШаблонSpeedrun.1.0.1.nupkg” placed in root folder of the project.
When i’m executing my code, it running without any errors, but nothing happens at all.
I’ve got the status code 415 as a result.
Could someone help me please?

Hi @1111248,

Could you please check below solution, looks like you are having similar issue:

You will need to reformat your request and also escape double quotes by double quotes.

Regards
Sonali

Hi,
Did you manage to solve this.
I’m getting this error to.

The Orchestrator HTTP Request activity will not help in this case, as it accepts only JSON format inputs.

You need to use the HTTP Request activity from the UiPath.WebAPI.Activities package.

How to upload a .nupkg package to UiPath Orchestrator using the HTTP Request activity?
In the below example, we used UiPath.WebAPI.Activities[1.13.1] in a Windows project

Enable SSL certificate verification: True
Timeout (milliseconds): 30000
Accept Format: CUSTOM
Request Method: POST
Request URL: "https://YOUR_ORCHESTRATOR_HOSTNAME/odata/Processes/UiPath.Server.Configuration.OData.UploadPackage()"
OAuth2Token: Bearer access_token
Attachments:

file: “FULL_PATH\name_of_file.version.nupkg”

Body Format: multipart/form-data

Headers:

x-uipath-organizationunitid: "YOUR_FOLDER_ID"
Content-Type: "multipart/form-data"

Results in Orchestrator → Tenant → Packages:

image