Create new Process through API call

Need to create a process in a specific folder using API call. The error message that pops up when Debugging is: "Release must not be null", however the package mentioned in the call exists on Tenant.

Issue Description: When doing an API call using activity UiPath.Core.Activities.Orchestrator.HttpRequest, error "Release must not be null" appears.

Resolution: The error is saying that what the payload body does not match the expected schema/ model of the endpoint called for the Releases model.

The API call should look like this:

  1. Select the Folder Path in which the Process needs to created
  2. The Endpoints can be found at the Permissions per Endpoints page. The Relative Endpoint in this case should be "/odata/Releases/UiPath.Server.Configuration.OData.CreateRelease"
  3. The full body of the request can be found in the DevTool (F12) -> Network -> Payload that is populated while creating a Process from Orchestrator. It should look like this:

"{'Name':'TestProc','Description':'BlankProcess','ProcessKey':'ProcessorRetryQueue','ProcessVersion':'1.0.2','EntryPointId':1,'InputArguments':'{}','SpecificPriorityValue':45,'JobPriority':null,'RobotSize':null,'HiddenForAttendedUser':false,'ResourceOverwrites':[],'AutoCreateConnectedTriggers':true,'RemoteControlAccess':'None','RetentionAction':'Delete','RetentionPeriod':30,'Tags':[],'ProcessSettings':{'ErrorRecordingEnabled':false,'Duration':40,'Frequency':500,'Quality':100,'AutoStartProcess':false,'AlwaysRunning':false},'VideoRecordingSettings':{'VideoRecordingType':'None','QueueItemVideoRecordingType':'None','MaxDurationSeconds':null}}

"

  1. Replace the Name, ProcessKey name (which represents the package name), ProcessVersion(package version) and EntryPointId depending on the case.
  2. If the Debug is successful and the Process was created, it should look like this:

  1. That can also be checked in Orchestrator.