- URL:
- https://<root>/<serviceName>/NetworkDiagramServer/diagrams/<diagramName>/setDiagramElementInfo
- Methods:
- POST
- Version Introduced:
- 11.3
Description
The set 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
| Parameter | Details | 
|---|---|
| 
 | The name of the geodatabase version. Syntax:  Example:  | 
| 
 | The token (guid) used to lock the version. Syntax:  Example:  | 
| 
 | An array of diagram element IDs. | 
| 
 | An array of string values, each one corresponding to the Info field value you want to set for the specified diagram Element ID. | 
| 
 | To potentially filter out the type of diagram features to which you want to set the Info field. Syntax:  | 
| 
 | The response format. The default response format is html. Values:  | 
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/Naperville Electric/Naperville_ Electric_ SQL_50898/Network Diagram Server/diagrams/Test Diagram1/set Diagram Element Info 
- 
Parameters: Use dark colors for code blocks Copy 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/Naperville Electric/Naperville_ Electric_ SQL_50898/Network Diagram Server/diagrams/Test Diagram1/set Diagram Element Info?gdb Version=&session Id=&diagram Element IDs=%5B1%2C+2%2C+3%2C+4%5D&diagram Element Info=%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&filter By Element Type=&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
{
 "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
}