Edit Service
- URL:https://<adminservicecatalog-url>/services/<serviceName>/MapServer/edit(POST only)
Description
The edit operation enables editing the service sourceItemID, minScale, maxScale, exportTilesAllowed, and maxExportTilesCount and applying changes.
Parameters
Parameter |
Details |
---|---|
f |
Description: The response format. The default response format is html. Values: html | json | pjson |
edit |
Description: The service definition. |
sourceItemID |
Description: The source item ID is the GeoWarehouse item ID of the map service. (Source Item ID) 087f5b67b1024523ae91f1069f294364 |
minScale |
Description: The minimum scale value of the map service. (MinScale) 591657527.591555 |
maxScale |
Description: The maximum scale value of the map service. (MaxScales) 1128.497176 |
exportTilesAllowed |
Description: Enables or disables the exporting of tiles for a hosted map service. {exportTilesAllowed : true | false} |
maxExportTilesCount |
Description: Sets the maximum tile count for exporting tiles for a hosted map service. {maxExportTilesCount : 500000} |
JSON Response syntax
{
"success": <true|false>,
"error": {
"code": <code>,
"message": "<description>",
"details": [
"<message>"
]
}
}
JSON Response example (when edit succeeds)
{
"success" : true
}
JSON Response example (when edit fails)
{
"error" :
{
"code" : 400,
"message" : "",
"details" : [
"Invalid service definition specified.",
"Invalid object passed in, ':' or '}' expected. (521): {\"adminServiceInfo\" : {\"name\" : \"WorldService\", \"type\" : \"MapServer\",....
]
}
}