Skip To Content
ArcGIS Developers
Dashboard

Cancel GP Job

  • URL:https://<task-url>/jobs/<job-id>/cancel
  • Version Introduced:10.0

Description

The cancel operation is performed on an asynchronous GP Job resource. This operation results in the cancellation of a geoprocessing job. You can provide an argument to the cancel operation as defined in the following parameters table:

Request parameters

ParameterDetails
f

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

Values: html | json

Example usage

https://sampleserver6.arcgisonline.com/arcgis/rest/services/911CallsHotspot/GPServer/911%20Calls%20Hotspot/jobs/j8279ff17f3b348ddadb6c092cfb7e7ba/cancel

Note:

j8279ff17f3b348ddadb6c092cfb7e7ba is an example job ID; the job ID of your job may vary.

JSON Response syntax

{"jobId" : "<jobId>","jobStatus" : "<jobStatus>"}

JSON Response example

{"jobId" : "JE30155054C2C416EA3CF6C88A40B94FF","jobStatus" : "esriJobCancelled"}