URL:
https://<root>/<serviceName>/NetworkDiagramServer/diagrams/<diagramName>/webLayerDefinitions
Methods:
POST
Version Introduced:
12.1

Description

The webLayerDefinitions resource details the layer and labeling properties that define each sublayer under the diagram layer in a lightweight format intended for use on the web in ArcGIS Online or ArcGIS Enterprise.

Diagram Web Layer Definitions REST endpoint resource

Request Parameters

ParameterDetails

gdbVersion

The name of the geodatabase version.

Syntax: gdbVersion=<version>

Example: gdbVersion=ABV1

sessionId

The token (guid) used to lock the version.

Syntax: sessionId=<guid>

Example: sessionId=44G259DE-87B0-407D-8F2E-DCB7665DD0F0

moment

The session moment.

Syntax:

Use dark colors for code blocksCopy
1
moment=<moment>

Example:

Use dark colors for code blocksCopy
1
moment=1490867969324

allLayers

The mode to use to cache the layer definitions for the diagram. When allLayers is true, all layers are cached whether they contain diagram features or not. When allLayers is false, only the layers that contain diagram features are cached. The default response is returned with allLayers=false.

Values: true | false

f

The response format. The default response format is html.

Values: <html | json>

Example Usage

Access web the layer definitions REST endpoint from the diagram named DiagramTest3:

Use dark colors for code blocksCopy
1
https://organization.example.com/<context>/rest/services/Naperville/NetworkDiagramServer/diagrams/DiagramTest3/webLayerDefinitions?gdbVersion=&sessionId=&moment=&allLayers=false&f=pjson

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