type: error post: description: |

Add orders

this resource can be used in the GUI for three functions

___

Parameters in the POST body schema

<>
NameTypeDescriptionExampleDefault
``controllerId``required, stringController IDmyController
``orders``required, array Specified the orders which should be modified. [{
"workflowPath":"/myWorkflow",
"orderName":"daily"
"scheduledFor":"now+10"
}]
``orderName``required, string (max. 30 characters)
field of each ``orders`` item
``orderName`` is only a part of the orderId in the form "#<date>#T<uniqueId>-<orderName>"
``workflowPath``required, string
field of each ``orders`` item
``scheduledFor``optional, string
field of each ``orders`` item
A start time in ISO format "yyyy-mm-dd HH:MM[:SS]" or "now" or "now + HH:MM[:SS]" or "now + SECONDS" or "never" is expected now+10now
``timeZone``optional, string
field of each ``orders`` item
  • This parameter set the time zone for the time stamp in the ``scheduledFor`` parameter.
  • See here the list for available time zones.
Europe/BerlinEtc/UTC
``arguments``optional, object
field of each ``orders`` item
An object with key-value pairs. The value can be a string, number or boolean
"arguments": {
      "myString": "stringValue",
      "myNumber": 3.14,
      "myBoolean": true
    }
``startPosition``optional, array or string
field of each ``orders`` item
The order starts with the first instruction per default.
The position can also be specified by the label of the instruction.
[0] or "job1"
``endPositions``optional, array[array or string]
field of each ``orders`` item
The order ends on one of these positions
The position can also be specified by the label of the instruction.
[[1]] or ["lastJob"]
``blockPosition``optional, array or stringThe order runs only inside the specified block instruction. The position can also be specified by the label of the block instruction.[1, "lock"]
``forceJobAdmission``optional, boolean
field of each ``orders`` item
If true then any admission times at a Job instruction will be ignoredfalse
body: application/json: schema: addOrders example: | { "controllerId": "myController", "orders": [{ "orderId": "order1", "workflowPath": "/test/testWorkflow", "scheduledFor": "now + 60" }, { "orderId": "order2", "workflowPath": "/test/testWorkflow" }, { "orderId": "order3", "workflowPath": "/test/testWorkflow" }, { "orderId": "order4", "workflowPath": "/test/testWorkflow" }, { "orderId": "order5", "workflowPath": "/test/testWorkflow" }] } responses: 200: description: Returns the orderIds that are tried to add. body: application/json: schema: orderIds example: | { "deliveryDate":"2020-11-20T21:13:35Z", "orderIds": [ "#2020-11-20#T835857946-Test0000000055" ] } 419: