Skip to content

Rebuild Cache (Feature Service)

URL:
https://<adminservicecatalog-url>/services/<serviceName>/VectorTileServer/rebuildCache
Methods:
GET
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

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

Example usage

Use dark colors for code blocksCopy
1
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:

Use dark colors for code blocksCopy
1
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:

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{
  "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:

Use dark colors for code blocksCopy
1
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:

Use dark colors for code blocksCopy
1
{"success": true}

JSON Response example

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
{
  "id": "id",
  "name": "FeatureServiceName",
  "status": "Success",
  "itemId": "itemID",
  "type": "Map Service",
  "jobId": "jobID",
  "message": "success"
}

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.