Set Diagram Element Info

URL:
https://<root>/<serviceName>/NetworkDiagramServer/diagrams/<diagramName>/setDiagramElementInfo
Methods:
POST
Version Introduced:
11.3

Description

The setDiagramElementInfo operation sets Info field values for the specified diagram features represented in the diagram. It is performed on a diagram resource diagram resource. The result of this operation is a Diagram JSON Information object, and the moment (date) the setDiagramElementInfo operation runs.

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

featureDEIDs

An array of diagram element IDs.

featureInfos

An array of string values, each one corresponding to the Info field value you want to set for the specified diagram Element ID.

filterByElementType

To potentially filter out the type of diagram features to which you want to set the Info field.

Syntax: {"browseJunctions":<true|false>, "browseEdges":<true|false>, "browseContainers":<true|false>}

f

The response format. The default response format is html.

Values: <html | json>

Example usage

Set Info field values on diagram features which Element IDs are 1, 2, 3 and 4 in the diagram TestDiagram1:

  • URL: https://myserver.esri.com/server/rest/services/NapervilleElectric/Naperville_Electric_SQL_50898/NetworkDiagramServer/diagrams/TestDiagram1/setDiagramElementInfo

  • Parameters:

    Use dark colors for code blocksCopy
    1
    2
    3
    4
    5
    6
    gdbVersion=
    sessionId=
    moment=
    diagramElementIDs=[1, 2, 3, 4]
    diagramElementInfo=["Info for DEID#1", "Info for DEID#2", "Info for DEID#3", "Info for DEID#4"]
    diagramElementFilter=
  • Sent URL (GET): https://myserver.esri.com/server/rest/services/NapervilleElectric/Naperville_Electric_SQL_50898/NetworkDiagramServer/diagrams/TestDiagram1/setDiagramElementInfo?gdbVersion=&sessionId=&diagramElementIDs=%5B1%2C+2%2C+3%2C+4%5D&diagramElementInfo=%5B%22Info+for+DEID%231%22%2C+%22Info+for+DEID%232%22%2C+%22Info+for+DEID%233%22%2C+%22Info+for+DEID%234%22%5D&filterByElementType=&f=pjson

JSON Response syntax

A JSON object composed of a Diagram JSON Information object and a moment: {"diagramInfo": Diagram JSON Information, "moment": <moment>}

JSON Response example

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{
 "diagramInfo": {
  "tag": "",
  "isStored": true,
  "canStore": false,
  "canExtend": false,
  "isSystem": false,
  "creator": "acb7352",
  "creationDate": 1702982317000,
  "lastUpdateBy": "acb7352",
  "lastUpdateDate": 1703005136000,
  "containerMargin": 0.5,
  "junctionCount": 4,
  "edgeCount": 3,
  "containerCount": 0,
  "aggregationCount": 10,
  "isHistorical": false,
  "access": "esriDiagramPublicAccess",
  "diagramExtent": {
   "xmin": 1030232.890141096,
   "ymin": 1871338.6320226118,
   "xmax": 1030417.3605726771,
   "ymax": 1871454.2505577803,
   "spatialReference": {
    "wkid": 102671,
    "latestWkid": 3435,
    "vcsWkid": 105703,
    "latestVcsWkid": 6360
   }
  },
  "networkExtent": {
   "xmin": 1030232.890141096,
   "ymin": 1871303.4234316126,
   "xmax": 1030417.3605726771,
   "ymax": 1871455.7836911976,
   "spatialReference": {
    "wkid": 102671,
    "latestWkid": 3435,
    "vcsWkid": 105703,
    "latestVcsWkid": 6360
   }
  },
  "name": "DiagramTest1",
  "id": "{5C8D1C14-CF63-4FCA-B2CB-439AF2B003B7}",
  "template": "ReduceJunctions"
 },
 "moment": 1703006047837
}

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