type: error post: description: |

add orders

___

Parameters in the POST body schema

<>
NameTypeDescriptionExampleDefault
``jobschedulerId``required, stringJobScheduler Master IDscheduler
``orders``required, array Specified the orders which should be modified and the modification. [{
"jobChain":"/sos/reporting/Inventory"
}]
``orderId``optional, string
field of each ``orders`` item
JobScheduler creates an ID if this field is empty
``jobChain``required, string
field of each ``orders`` item
Path of the job chain
``at``optional, string
field of each ``orders`` item
start time in ISO format yyyy-mm-dd HH:MM[:SS] or now or now + HH:MM[:SS] or now + SECONDS now+10now
``timeZone``optional, string
field of each ``orders`` item
  • This parameter set the time zone for an absolute time stamp in the ``at`` parameter.
  • This parameter is ignored for relative times in ``at`` such as "now+10"
  • See here the list for available time zones.
Berlin/EuropeTime zone of the JobScheduler
``state``optional, string
field of each ``orders`` item
Name of the desired job chain start node
``endState``optional, string
field of each ``orders`` item
Name of the desired job chain end node
``params``optional, array
field of each ``orders`` item
Parameterparams:[{"name":"...","value":"..."}]
``title``optional, string
field of each ``orders`` item
Title
``runRime``optional, string
field of each ``orders`` item
run time in xml format
body: application/json: schema: modifyOrders example: | { "jobschedulerId": "scheduler", "orders": [{ "jobChain": "/test/testJobChain", "title": "new order" }, { "orderId": "order2", "jobChain": "/test/testJobChain", "state": "step4" }, { "orderId": "order3", "jobChain": "/test/testJobChain", "state": "step5", "params": [ { "name": "step5_param_name", "value": "step5_param_value" } ] }, { "orderId": "order4", "jobChain": "/test/testJobChain", "state": "step4", "at": "now+10" }, { "orderId": "order5", "jobChain": "/test/testJobChain", "state": "step4" }] } responses: 200: description: It returns an _ok_ and a collection of orders with the new orderId. This reply code comes only for bulk operations if all commands were successful. body: application/json: schema: addedOrders example: | { "deliveryDate":"2016-05-05T21:13:35Z", "ok":true, "orders": [ { "surveyDate":"2016-05-05T21:13:34Z", "jobChain": "/path/to/job chain", "orderId": "4711" } ] } 419: description: It returns an array of _error_ items for each failed command and the new orderId in an orders collection for each successful command at bulk operations. body: application/json: schema: addedOrders