Disable Job

Description

LicenseLicense:

The ArcGIS Data Reviewer for Server extension is required in order to use this resource.

A REST resource that pauses the scheduler of a batch job. disableJob suspends a job's schedule. It does not delete the job or cancel execution of a job.

You can resume the scheduler for a job using the enableJob operation.

Request parameters

Parameter

Details

f

Description: The response format. The default response format is html.

Values: html | json

Example usage

Example 1: Pause the execution schedule for job e4aa6cfd-430c-4a22-a136-201ba3ee7f70.

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

JSON response example 1

{
  "disabled": true
}

JSON response example 2

Response to a request to pause the execution schedule for a job that has no schedule.

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

7/5/2017