Update Tiles

Description

The updateTiles operation supports updating the cooking extent and cache levels in a hosted map service. The result of this operation is a response indicating success, which redirects you to the Job Statistics page, or failure, which includes an error code and description.

Parameters

Parameter

Details

f

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

Values: html | json | pjson

updateTiles

Description: The updateTiles operation updates cooking extent and cache levels in a hosted map service.

extent

Description: The cooking extent of the map service.

{"xmin":3950569,"ymin":4015211,"xmax":3951304,"ymax":4016043,"spatialReference":{"wkid":102100}}

levels

Description: The cache levels of the map service.

0-5,10,11-20 [OR] 1,2,3 [OR] 0-5

JSON Response syntax

{
  "id":<id>,
  "name": <service name>,
  "status": <success | failed>,
  "itemId": <item id>,
  "type": <map service>,
  "jobId": <job id>,
  "error": {
    "code": <code>,
    "message": "<description>",
    "details": [
      "<message>"
    ]
  }
}

HTML Response example (when updateTiles succeeds)

The HTML response will redirect you to the Job Statistics.

JSON Response example (when updateTiles succeeds)

{
  "id" : "ca377ba3-6f19-4ebb-bd15-aaae0c055373", 
  "name" : "WorldService", 
  "status" : "Success", 
  "itemId" : "ca377ba36f194ebbbd15aaae0c055373", 
  "type" : "Map Service", 
  "jobId" : "e2e8a0bb-4b40-46ac-813a-0bbdf522195f", 
  "message" : "success"
}

JSON Response example (when updateTiles - Cooking Extent fails)

{
  "error" : 
  {
    "code" : 400, 
    "message" : "", 
    "details" : [
      "Invalid extent."
    ]
  }
}

JSON Response example (when updateTiles - Cache Levels fails)

{
  "error" : 
  {
    "code" : 400, 
    "message" : "", 
    "details" : [
      "Invalid cache levels."
    ]
  }
}

7/5/2017