FRAMES | NO FRAMES Description | Parameters | Examples | Response
enableJob (Operation)
URL http://<BatchValidation-url>/scheduledJobs/<jobId>/enableJob
Parent Resource scheduled job

Description

Resumes a batch job's schedule. You can pause a batch job's schedule with disableJob. disableJob suspends a job's schedule. It does not delete the job or cancel execution of a job.

Parameters

Parameter Details
f Description: The response format. The default response format is html.

Values: html | json

Example Usage

Example 1: Resume the schedule for jobId e1f43a16-f5aa-49e9-a562-271a97102fd3:

http://localhost:6080/arcgis/rest/services/reviewer/MapServer/exts/DataReviewerServer/BatchValidation/scheduledJobs/e4aa6cfd-430c-4a22-a136-201ba3ee7f70/enableJob?f=pjson

JSON Response Example

{
  "enabled": true
}

Example 2: Response for a jobId that is not scheduled:

JSON Response Example

{
  "error" : {
    "code" : 500,
    "message" : "Job not found: 60ef089d-6c35-43f7-91f4-1649fbd39028"
  }
}