API /odata/ProcessSchedules

Trying to schedule a process with sending http request to /odata/ProcessSchedules
{
“Enabled”: true,
“Name”: “123123”,
“ReleaseKey”: “2******************************3”,
“StartProcessCron”: “0 20 19 9 7 ? 2020”,
“StartStrategy”: 0,
“ExecutorRobots”: [
{
“Id”: 28269
}
]
}

Response body:
{
“message”: “The job’s associated process could not be found”,
“errorCode”: 1002,
“resourceIds”: null
}
Swagger example value has a lot of optinal parametres, but I am not sure which are really not mandatory?
Any ideas?

{
“Enabled”: true,
“Name”: “name”,
“ReleaseId”: 1111111,
“StartProcessCron”: “0 40 22 9 7 ? 2021”,
“StartProcessCronDetails”: “{"advancedCronExpression":"0 40 22 9 7 ? 2021"}”,
“StartStrategy”: 0,
“ExecutorRobots”: [
{
“Id”: 00000
}
],
“TimeZoneId”: “FLE Standard Time”,
“TimeZoneIana”: “Europe/Kiev”
}

1111111 from getrelease
00000 from getrobots id

2 Likes