Skip to content
URL:
https://<adminservicecatalog-url>/services/<serviceName>/MapServer/edit
Methods:
POST

Description

The edit operation enables editing the service sourceItemID , minScale , maxScale , exportTilesAllowed , and maxExportTilesCount parameters.

Parameters

ParameterDetails
f

The response format. The default response format is html.

Values: html | json | pjson

serviceDefinition

The service definition.

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
"exportTilesAllowed": false,
"maxExportTilesCount": 100000,
"cacheOnDemand": false,
"capabilities": "Map",
"cacheMaxAge": 600,
"abstract": null,
"metadataLink": null,
"keywords": []
sourceItemID

The source item ID is the map service's portal item ID.

Use dark colors for code blocksCopy
1
sourceItemID=087f5b67b1024523ae91f1069f294364
minScale

The minimum scale value of the map service.

Use dark colors for code blocksCopy
1
minScale=591657527.591555
maxScale

The maximum scale value of the map service.

Use dark colors for code blocksCopy
1
maxScale=1128.497176
exportTilesAllowed

Enables or disables the exporting of tiles for a hosted map service.

Values: true | false

maxExportTilesCount

Sets the maximum tile count for exporting tiles for a hosted map service.

Use dark colors for code blocksCopy
1
maxExportTilesCount=500000

Example usage

https://services.myserver.com/arcgis/rest/admin/services/serviceName/MapServer/edit?f=html

Example 1

https://services.myserver.com/arcgis/rest/admin/services/serviceName/MapServer/edit?serviceDefinition={"maxExportTilesCount":5000,"exportTilesAllowed":true}&token=AddYourToken

JSON Response syntax

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
{
  "success": <true|false>,
  "error": {
    "code": <code>,
    "message": "<description>",
    "details": [
      "<message>"
    ]
  }
}

JSON Response example (when edit succeeds)

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

JSON Response example (when edit fails)

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
{
  "error" :
  {
    "code" : 400,
    "message" : "",
    "details" : [
      "Invalid service definition specified.",
      "Invalid object passed in, ':' or '}' expected. (521): {\"adminServiceInfo\" : {\"name\" : \"WorldService\", \"type\" : \"MapServer\",....
    ]
  }
}

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