ProcessSchedules POST API call is not working

Hi Team,

Warm Greetings !

I’m trying to create ProcessSchedule by using API with Below json input. In fact I have tried all the possible option with json but no luck, everytime is failing with new error.
Json:
{
“Name”: “ApiTest”,
“ReleaseId”: ***,
“ReleaseName”: “Test_Release”,
“StartProcessCron”: “0 0 0 ? 1/5 SUN *”,
“StartProcessCronDetails”: “{“type”:4,“minutely”:{},“hourly”:{},“daily”:{},“weekly”:{“weekdays”:},“monthly”:{“weekdays”:[{“id”:“SUN”,“weekly”:“Sunday”,“monthly”:“Sunday”}],“atMinute”:0,“atHour”:0,“frequencyInMonths”:“5”},“advancedCronExpression”:”"}",
“StartStrategy”: 15,
“ExecutorRobots”: ,
“StopProcessExpression”: “”,
“StopStrategy”: null,
“TimeZoneId”: “GMT Standard Time”
}

Powershell Api Call:
Invoke-WebRequest -Uri “https://XXXXX.com/odata/ProcessSchedules” -Method POST -Body $json -Credential $credential -UseBasicParsing -verbose

Can anyone please look into this and share me the working code for this.

Thanks in advance…

Chenna

1 Like

Hey @chenna_reddy,

Can you please share the errors your are getting?

Zev