Skip To Content
ArcGIS Developers
Dashboard

Update Tiles (Feature Service)

  • URL:https://<adminservicecatalog-url>/services/<serviceName>/VectorTileServer/updateTiles
  • Version Introduced:ArcGIS Online April 2021

Description

The updateTiles operation supports updating the cooking extent and cache levels in a hosted vector tile service. The results of the operation is a response indicating success, which redirects you to the Job Statistics page, or failure.

Request parameters

PropertyDetails
f

The response format. The default response format is json.

Values: html | json

token

An access token that identifies the authenticated user and controls access to restricted resources and operations.

Example usage

Note:
This is an example URL only and is not an active link to an existing service.

https://services.myserver.com/arcgis/rest/admin/services/serviceName/VectorTileServer/updateTiles?f=html

Job statistics

The sample URL below is used to access the job resource for the updateTiles operation:

Note:
This is an example URL only and is not an active link to an existing service.

https://services.myserver.com/arcgis/rest/admin/services/serviceName/VectorTileServer/jobs/<jobID>?f=html

JSON response example

The following response is returned when accessing the job statistics resource:

{
  "jobId": "jobID",
  "type": "CACHECOOKER",
  "jobStatus": "SUBMITTED",
  "submitter": "submitter",
  "percentComplete": 0,
  "message": "",
  "submitTime": 1616380905827,
  "lastTime": 1616380905933,
  "extent": {
    "xmin": -20037508.3428,
    "ymin": -20037508.3428,
    "xmax": 20037508.3428,
    "ymax": 20037508.3428,
    "spatialReference": {
      "wkid": 102100,
      "latestWkid": 3857
    }
  },
  "numTasks": 1,
  "numDoneTasks": 0,
  "numErrorTasks": 0,
  "numCanceledTasks": 0,
  "numSubmittedTasks": 1,
  "numProcessingTasks": 0,
  "estimatedNumTiles": 0,
  "numTiles": 0,
  "estimatedTilesSize": 0,
  "tilesSize": 0,
  "averageTaskTime": 0,
  "totalTaskTime": 0
}

Cancel job

The sample URL below can be used to cancel the currently running updateTiles job:

Note:
This is an example URL only and is not an active link to an existing service.

https://services.myserver.com/arcgis/rest/admin/services/serviceName/VectorTileServer/jobs/<jobID>/cancel?f=html

JSON Response example

The following response is returned when the job is cancelled successfully:

{"success": true}

JSON Response example

{
  "id": "id",
  "name": "FeatureServiceName",
  "status": "Success",
  "itemId": "itemID",
  "type": "Map Service",
  "jobId": "jobID",
  "message": "success"
}