Layer Definitions

URL:
https://<root>/<serviceName>/NetworkDiagramServer/diagrams/<diagramName>/layerDefinitions
Methods:
POST
Version Introduced:
10.6

Description

The layerDefinitions resource details all the layer and labeling properties that define each sublayer under the diagram layer.

Diagram 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

Added in 10.7.1

The session moment.

Syntax: moment=<moment>

Example: moment=1490867969324

allLayers

Added in 10.8.1

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.

Syntax: allLayers=<true |false>

Example: allLayers=false

f

The response format. The default response format is html.

Values: <html | json>

Example Usage

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

  • URL: https://myserver.esri.com/server/rest/services/Naperville/NetworkDiagramServer/diagrams/DiagramTest3/layerDefinitions

  • Parameters:

    Use dark colors for code blocksCopy
    1
    2
    3
    4
    5
    gdbVersion=
    sessionId=
    moment=
    allLayers=false
    f=pjson
  • Sent URL (GET): https://myserver.esri.com/server/rest/services/Naperville/NetworkDiagramServer/diagrams/DiagramTest3/layerDefinitions?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.