System - Get all jobs

API Url

Used to get all scheduled jobs.

GET
http://localhost:16010/ProMarkREST/rest/System/jobs

Permissions: user

Query parameters

FieldTypeDescription
jobTypeoptionalinteger

1: Standard job, 2: ProReport.

Success 200

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data.

    jobsObject[]

Collection with job data.

      activeBoolean

true = Job is currently running.

      appServerString

Name of AppServer responsible with the job.

      canEditBoolean

True = Logged in user can change the report.

      createdByString

Job Owner.

      delayNumber

Max. seconds after start time that job must be started.

      descriptionString

Description of the job.

      executeNumber

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

      jobNoNumber

Job number.

      nextRunDate

Time of the next job run as date-time ISO-8601.

      parentIdString

ID used to retrieve other connected data.

      privateBoolean

Report's security status.

      sharedWithoptionalString

Available only for ownder. A list of users ids of users that have access to the report.

      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.

      typeNumber

1: Standard job, 2: ProReport.

      weekDayNumber

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

  messageoptionalObject

Object containing response messages.

    codeNumber

Message code.

    textString

Message text.

    typeString

Type of message.

Allowed values:"warning""info"

Success example:

HTTP/1.1 200 OK
{
"response": {
"data": {
"jobs": [
{
"jobNo": 1878,
"createdBy": "R",
"nextRun": "2017-04-04T00:00:00.000",
"startDate": "2017-03-28",
"startTime": 0,
"execute": 2,
"weekDay": 2,
"type": 1,
"parentId": "",
"active": false,
"delay": 400000000,
"appServer": "",
"description": "Auto clock-in/out for categories 2"
"canEdit": true,
"private": true
}
]
},
"erorCode": 0,
"errorMessage": ""
}
}

Error 4xx

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data (empty).

  errorCodeNumber

Error code.

  errorMessageString

Error description.