System - Update job

API Url

Used to update a single scheduled job.

PUT
http://localhost:16010/ProMarkREST/rest/System/jobs/{jobNo}

Permissions: user

Path parameters

FieldTypeDescription
jobNoNumber

Job number.

Parameter

FieldTypeDescription
requestObject

Main object containing the request data.

  dataObject

Object containg data to be uploaded.

    jobsObject

The job object to be updated.

      appServerString

Name of AppServer responsible with the job.

      delayNumber

Max. no. of hours after start time that job must be started.

      descriptionString

The description of the job.

      executeNumber

Job execution type (1: date, 2: weekDays, 3: alldays, 4: Recurrence).

      restartoptionalBoolean

true = Restart job on AppServer. Only Administrators can restart a job!

      startDateDate

The start date of the first run as date ISO-8601.

      startTimeNumber

Time of day when job is executed, expressed in seconds from midnight.

      weekDayNumber

Used only for execute type 2 : 1=Sunday, 2=Monday,...7=Saturday

Request example:

HTTP/1.1 200 OK
{
"request": {
"data": {
"job": {
"startDate": "2016-07-10",
"startTime": "846644",
"execute": 1,
"weekDay": 0,
"delay": 0,
"appServer": "",
"description": "Description",
"restart": true
}
},
}
}

Error 4xx

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data (empty).

  errorCodeNumber

Error code.

  errorMessageString

Error description.

Error example:

HTTP/1.1 404 not found
{
"response": {
"errorCode": 354,
"errorMessage": "Job does not exist"
}
}