type: error post: description: |

Starts jobs

this resource can be used in the GUI for three functions

This is only available for standalone jobs.

___

Parameters in the POST body schema

<>
NameTypeDescriptionExampleDefault
``jobschedulerId``required, stringJobScheduler Master IDscheduler
``jobs``required, array Specified the jobs which should be modified and the modification. [{
"job":"/sos/reporting/Inventory",
"at":"now+10"
}]
``at``optional, string
field of each ``jobs`` 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 ``jobs`` 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
``params``optional, array
field of each ``jobs`` item
Parametersparams:[{"name":"...","value":"..."}]
``environment``optional, array
field of each ``jobs`` item
Environment variablesenvironment:[{"name":"...","value":"..."}]
body: application/json: schema: startJobs example: | { "jobschedulerId": "scheduler", "jobs": [{ "job": "/test/testJob1", "at": "now" }, { "job": "/sos/housekeeping/scheduler_rotate_log", "at": "now + 60", "params": { "file_age": "7" } }, { "job": "/test/testJob2", "at": "now" }, { "job": "/test/testJob3", "at": "now" }] } responses: 200: description: It returns an _ok_ and a collection of tasks with the new taskId. . This reply code comes only for bulk operations if all commands were successful. body: application/json: schema: startedTasks example: | { "deliveryDate":"2016-05-05T21:13:35Z", "ok":true, "tasks": [ { "surveyDate":"2016-05-05T21:13:34Z", "job": "/path/to/job", "taskId": "4711" } ] } 419: description: It returns an array of _error_ items for each failed command and the new taskId in an tasks collection for each successful command at bulk operations. body: application/json: schema: startedTasks