Skip To Content
ArcGIS Developers
Dashboard

Rebuild Cache (Feature Service)

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

Description

The rebuildCache operation update the vector tile layer cache to reflect any changes made to the feature layer used to publish this vector tile layer. The results of the operation is a response indicating success, which redirects you to the Job Statistics page, or failure.

Response properties

ParameterDetails
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/rebuildCache?f=html

Job resource

The sample URL below can be used to access the job resource for the rebuildCache 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>?f=html

JSON Response example

The following response is returned when accessing the job 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 rebuildCache 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"
}