Skip To Content
ArcGIS Developers
Dashboard

Edit Service (Feature Service)

  • URL:https://<adminservicecatalog-url>/services/<serviceName>/VectorTileServer/edit
  • 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

{
  "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

sourceItemID=087f5b67b3d52v23ae91f10a3r23294364
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/edit?f=html

Example one: maxZoom edit

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

https://services.myserver.com/arcgis/rest/admin/services/serviceName/VectorTileServer/edit?f=html&serviceDefinition={"maxZoom":20}&token=AddYourToken

Example two: exportTilesAllowed and maxZoom edit

Note:
This is an example URL on how to edit the serviceDefinition "exportTilesAllowed" and "maxZoom".

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

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:

{
  "success": true
}

The following response is returned when the edit fails:

{
  "Unable to edit Vector Tile Service." "Invalid JSON"
}

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

{
  "Unable to edit Vector Tile Service." "Invalid value of exportTilesAllowed"
}

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

{
  "Unable to edit Vector Tile Service." "Invalid value of maxZoom"
}