Creating a process from a package using Orchestrator API

orchestrator

#1

I am trying to add a process from a package

Below is my curl command:

curl --insecure -X POST https://platform.uipath.com/odata/Releases
-H “Authorization: Bearer TOKEN”
-d “{ ‘ProcessKey’:‘Samples’, ‘ProcessVersion’:‘1.0.6751.33927’, ‘Name’:‘TestEnv1’, ‘EnvironmentId’:20431 }”

The output I get is :
{“message”:“The EnvironmentId property is required.; The ProcessKey field is required.; The ProcessVersion field is required.; The Name field is required.”,“errorCode”:0,“resourceIds”:null}

I am not able to add a new Process from a Package.
Could you please help me out?

Thanks


#2

I was missing -H “Content-Type: application/json”.
Now the below command should work:
curl --insecure -X POST https://platform.uipath.com/odata/Releases 1
-H “Authorization: Bearer TOKEN”
-H “Content-Type: application/json”
-d “{ ‘ProcessKey’:‘Samples’, ‘ProcessVersion’:‘1.0.6751.33927’, ‘Name’:‘TestEnv1’, ‘EnvironmentId’:20431 }”