Which IDs?
I get a list of JSON strings in return when i use the odata/ProcessSchedules, where each listitem looks something like this:
{
“Key”: “5860ad00-9dbc-4106-8241-c684b3d2a4aa”,
“Enabled”: false,
“Name”: “Name of project”,
“ReleaseId”: 51,
“ReleaseKey”: “cddbed89-c599-4bb6-be13-6d42262cb7b2”,
“ReleaseName”: “007_01”,
“PackageName”: “007_01”,
“EnvironmentName”: null,
“EnvironmentId”: “”,
“JobPriority”: null,
“SpecificPriorityValue”: null,
“RuntimeType”: “Unattended”,
“StartProcessCron”: “0 0/30 * 1/1 * ? *”,
“StartProcessCronDetails”: “{"type":5,"minutely":{},"hourly":{},"daily":{},"weekly":{"weekdays":},"monthly":{"weekdays":},"advancedCronExpression":"0 0/30 * 1/1 * ? *"}”,
“StartProcessCronSummary”: “Every 30 minutes”,
“StartProcessNextOccurrence”: null,
“StartStrategy”: 1,
“StopProcessExpression”: “7200”,
“StopStrategy”: “SoftStop”,
“KillProcessExpression”: null,
“ExternalJobKey”: null,
“ExternalJobKeyScheduler”: “117937c2-3e7f-4578-8259-43217523ecd6”,
“TimeZoneId”: “UTC”,
“TimeZoneIana”: “UTC”,
“UseCalendar”: false,
“CalendarId”: null,
“CalendarName”: null,
“StopProcessDate”: null,
“InputArguments”: null,
“QueueDefinitionId”: 13,
“QueueDefinitionName”: “007_01”,
“ItemsActivationThreshold”: 1,
“ItemsPerJobActivationTarget”: 1,
“MaxJobsForActivation”: 2,
“ResumeOnSameContext”: false,
“Description”: null,
“AlertPendingExpression”: null,
“AlertRunningExpression”: null,
“RunAsMe”: false,
“IsConnected”: false,
“Id”: 35,
“MachineRobots”: ,
“Tags”:
}
odata/ProcessSchedules/UiPath.Server.Configuration.OData.SetEnabled expects a JSON payload with this format:
{
“enabled”: true,
“scheduleIds”: [
0
]
}
So it seems it expects an integer ScheduleID? 