Create New Trigger Through API Call

How to Create new trigger through API call?

  1. Find the below sample JSON code to create the trigger using API. Save the file into the notepad.
{"Name":"Test","Enabled":true,"StartStrategy":1,"SpecificPriorityValue":null,"JobPriority":null,"RuntimeType":"Unattended","InputArguments":"{}","ResumeOnSameContext":false,"StopProcessExpression":"","RunAsMe":false,"IsConnected":false,"UseCalendar":false,"StartProcessCronDetails":"{\"type\":0,\"minutely\":{\"atMinute\":1},\"hourly\":{},\"daily\":{},\"weekly\":{\"weekdays\":[]},\"monthly\":{\"weekdays\":[]},\"advancedCronExpression\":\"\"}","StartProcessCron":"0 0/1 * 1/1 * ? *","ExecutorRobots":[],"ReleaseId":10,"ReleaseName":"Hello World","TimeZoneId":"UTC","StopProcessDate":null,"ExternalJobKey":"","MachineRobots":[]}

  1. Then create a new blank process, choose the process name and platform in the Studio, and ensure to install the Uipath.WebAPI.Activities under the manage packages
  2. Save the JSON response code into a notepad file. Modify the parameter name or cron expression etc
  3. Use the read text file activities to read the file. Then use the Orchestrator HTTP activities. Create the new trigger using the POST method and below relative endpoint
  • /odata/processSchedules

  1. Navigate into the Orchestrator, verify the new trigger created in the trigger section.