Using Orchestrator API to Create Process Schedule


#1

I was trying to use HTTP POST Call on ‘/odata/ProcessSchedules’ to create process schedule for one of my processes. However, I was getting the error message below:
{
“message”: “An error has occurred.”,
“errorCode”: 0
}

The json body for my POST request was as below:
{
“Enabled”:true,
“ReleaseId”:18,
“ReleaseName”:“RPAChallenge_DemoEnv”,
“StartProcessCron”:“0 * * * * ? *”,
“StartProcessCronDetails”:"{“type”:0,“minutely”:{“atMinute”:1},“hourly”:{},“daily”:{},“weekly”:{“weekdays”:[]},“monthly”:{“weekdays”:[]},“advancedCronExpression”:""}",
“StartStrategy”:-1,
“ExecutorRobots”:[],
“StopProcessExpression”:"",
“StopStrategy”:“Kill”,
“Name”:“Do RPAChallenge for every minute”
}

Does anyone out there know the correct body content to create a process schedule? Any help or response is appreciated. :slight_smile:


#2

Hi poonkoon.lim,

Did u figure out the correct request body for processSchedules? I’m getting the same error:

{“message”:“An error has occurred.”,“errorCode”:0,“resourceIds”:null}