Delete Job

Description

The delete job operation supports deleting a job from a hosted map service. The result of this operation is a response indicating success or failure with error code and description.

Parameters

Parameter

Details

f

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

Values: html | json | pjson

deleteJob

Description: The deleteJob parameter deletes a tile job from hosted map service.

Example Usage

Example input (HTML)

Job map server

Example input (HTML)

Job statistics

JSON Response Syntax

{
  "id": "<id>",
  "name": "<serviceName>",
  "itemId": "<itemId>",
  "type": "<Map Service>",
  "status": "<success | failed>",
  "jobId": "<jobId>",
  "message": "<description>",

  "error": {
    "code": <code>,
    "message": "<description>",
    "details": [
      "<message>"
    ]
  }
}

JSON Response Example (when deleteFromDefinition succeeds)

{
  "id" : "d0b491f7-e890-40d0-94b3-39467f111303", 
  "name" : "WorldServices", 
  "itemId" : "d0b491f7e89040d094b339467f111303", 
  "type" : "Map Service", 
  "status" : "Success", 
  "jobId" : "f7d6273d-aada-44e0-be30-0b903ab50cd8", 
  "message" : "success"
}

JSON Response Example (when deleteFromDefinition fails)

{
  "error" : 
  {
    "code" : 400, 
    "message" : "", 
    "details" : [
      "Unable to delete job."
    ]
  }
}

7/5/2017