JOC API

Version 2.0.0

Download RAML
JOC API
/daily_plan/orders/generate
POST

Generates orders for a given daily plan


Parameters in the POST body schema

Name Type Description Example Default
controllerId required, string Controller ID myController
selector optional Describes, for what schedules the orders should be generated for the given daily plan.
All selectors will be combined with "or". The elements in the lists schedulePaths, folders, workflowPaths will be combined with "or" The schedules for what orders are to be generated can be selected with:
  • schedulePaths
  • folders
  • workflowPaths
dailyPlanDate required, string The value has to have the format YYYY-MM-DD
The day of the daily plan. Depends on the settings for daily plan timezone and daily plan period.
2020-12-31
schedulePaths optional; array[string] Generate orders for the given daily plan based on all of the given schedules in schedulePaths. ["/path/mySchedule"]
folders optional; array[folder] Generate orders for the given daily plan based on the schedules located in the given folders. Depending on the value for "recursive" also in one of the subfolders recursively. [{
"folder": "/sos",
"recursive": true
}]
If no selector is specified then "folder":"/", "recursive":true
workflowPaths optional; array[string] Generate orders for the given daily plan based on the schedules that are assigned to one of the given workflows in workflowPaths. [/path/to/workflow]
controllerIds optional; array[string] When empty, the schedules will be returned for those Controller Ids that have a deployed workflow for the given schedules (from the selector).
When not empty, the orders will be returned for those Controller Ids that have a deployed workflow for the given schedules (from the selector) and that are included in the list controllerIds.
["myControllerId"]
overwrite optional, boolean if true, overwrite existing orders (same workflow, same start time, same schedule name). Any variables will be overwritten.
if false, existing orders will not be overwritten.
false
withSubmit optional, boolean if true, the orders will be submitted to the Controller.
if false, the order will be planned and not submitted to the Controller
false
auditLog optional, object Object that contains comment, timeSpent and ticketLink. {
"comment":"Operational requirement!",
"timeSpent":2
}
comment optional, string Field in auditLog to comment this action, e.g. the reason.
timeSpent optional, integer Field in auditLog to enter the time spent in minutes. 5
ticketLink optional, string Field in auditLog to enter a link to a corresponding ticket.