- URL:
- https://<adminservicecatalog-url>/services/<serviceName>/VectorTileServer/edit
- Methods:
GET
- Version Introduced:
- ArcGIS Online April 2021
Description
The edit
operation enables editing the service export
, layer
, cache
, and max
properties.
Request parameters
Parameter | Details |
---|---|
service | The service definition. Example
|
source | The source item ID is the GeoWarehouse item ID of the map service. Example
|
f | The response format. The default response format is Values: |
token | An access token that identifies the authenticated user and controls access to restricted resources and operations. |
Example usage
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 service
max
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
This is an example URL on how to edit the service
export
and max
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 export
property:
{
"Unable to edit Vector Tile Service." "Invalid value of exportTilesAllowed"
}
The following response is returned when the edits fails for the max
property:
{
"Unable to edit Vector Tile Service." "Invalid value of maxZoom"
}