/orders/add
POST
Add orders
this resource can be used in the GUI for three functions
- start immediatly
- start at (with
scheduledFor
) - start at parametrised (with
scheduledFor
andarguments
)
Parameters in the POST body schema
Name | Type | Description | Example | Default |
---|---|---|---|---|
controllerId |
required, string | Controller ID | myController | |
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+10 | now |
timeZone |
optional, string field of each orders item |
|
Europe/Berlin | Etc/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 string | The 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 ignored | 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. |
||
ticketLink |
optional, string | Field in auditLog to enter a link to a corresponding ticket. |
Request