Skip to content

Edit Service (Feature Service)

URL:
https://<adminservicecatalog-url>/services/<serviceName>/VectorTileServer/edit
Methods:
GET
Version Introduced:
ArcGIS Online April 2021

Description

The edit operation enables editing the service exportTilesAllowed , layerProperties , cacheMaxAge , and maxZoom properties.

Request parameters

ParameterDetails
serviceDefinition

The service definition.

Example

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{
  "exportTilesAllowed": <true | false>,
  "layerProperties": [
    "layers": [
      {
        "name": "Layer Name",
        "id": 1159321,
        "layerId": 0,
        "tableName": "tableName",
        "type": "Feature Layer",
        "xssTrustedFields": ""
      }
    ]
  ]
  "cacheMaxAge": 600 //Maximum cache age,
  "maxZoom": 23 //Maximum zoom level
}
sourceItemID

The source item ID is the GeoWarehouse item ID of the map service.

Example

Use dark colors for code blocksCopy
1
sourceItemID=087f5b67b3d52v23ae91f10a3r23294364
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/edit?f=html

Example one: maxZoom edit

This is an example URL on how to edit the serviceDefinition maxZoom property:

Use dark colors for code blocksCopy
1
https://services.myserver.com/arcgis/rest/admin/services/serviceName/VectorTileServer/edit?f=html&serviceDefinition={"maxZoom":20}&token=AddYourToken

Example two: exportTilesAllowed and maxZoom edit

This is an example URL on how to edit the serviceDefinition exportTilesAllowed and maxZoom properties:

Use dark colors for code blocksCopy
1
https://services.myserver.com/arcgis/rest/admin/services/serviceName/VectorTileServer/edit?f=html&serviceDefinition={"exportTilesAllowed":true,"maxZoom":20}&token=AddYourToken

JSON Response examples

The following response is returned when the edit succeeds:

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

The following response is returned when the edit fails:

Use dark colors for code blocksCopy
1
2
3
{
  "Unable to edit Vector Tile Service." "Invalid JSON"
}

The following response is returned when the edit fails for the exportTilesAllowed property:

Use dark colors for code blocksCopy
1
2
3
{
  "Unable to edit Vector Tile Service." "Invalid value of exportTilesAllowed"
}

The following response is returned when the edits fails for the maxZoom property:

Use dark colors for code blocksCopy
1
2
3
{
  "Unable to edit Vector Tile Service." "Invalid value of maxZoom"
}

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