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
Parameter | Details |
---|---|
serviceDefinition | The service definition. Example
|
sourceItemID | The source item ID is the GeoWarehouse item ID of the map service. Example
|
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"
}