Hi community!!
I am dealing with the orchestrator API, both with Uipath HttpRequest dedicated activities, and also in python.
I am trying to perform “Upload Package” action, as follows (indicated in the API guide)(Python).
url = myOrchestratorURL + “/odata/Processes/UiPath.Server.Configuration.OData.UploadPackage”
headers = {
‘authorization’: "Bearer " + bearer,
‘content-type’: “multipart/form-data”,
}
multipart_form_data = {
‘Content-Disposition’ : ‘form-data; name=“file”; filename=“CHARO_A.1.0.6515.17422.nupkg”’,
‘Content-Type’ : ‘application/octet-stream’
}
response = requests.post(url, headers=headers , files=multipart_form_data)
print(response.text):
And the result obtained is:
{“error”:{“code”:"",“message”:“You have to upload one package.”}}
At one point I guess I am missing something, but I can’t guess… Any help would be appreciated!
Thanks a lot and have a good day