- URL:
- https://<root>/<serviceName>/NetworkDiagramServer/diagrams/<diagramName>/update
- Methods:
POST
- Version Introduced:
- 10.6
Description
The update
operation updates the diagram content to include potential edits and network topology changes. It is performed on a Diagram resource. The result of this operation is a Diagram JSON Information object, and the moment the update operation happens for a stored diagram.
It synchronizes the diagram content from the network elements used to initially generate it to reflect any changes that may have impacted those network elements into the diagram.
Request Parameters
Parameter | Details |
---|---|
|
The name of the geodatabase version. Syntax: Example: |
|
The token (guid) used to lock the version. Syntax: Example: |
|
The response format. The default response format is html. Values: |
Example Usage
Updating the diagram called DiagramTest2 in version ABV1; that is:
-
URL:
https
://myserver.esri.com/server/rest/services/ Naperville/ Network Diagram Server/diagrams/ Diagram Test2/update -
Parameters:
Use dark colors for code blocks Copy gdbVersion=ABV1 sessionId= f=pjson
-
Sent URL (GET):
https
://myserver.esri.com/server/rest/services/ Naperville/ Network Diagram Server/diagrams/ Diagram Test2/update?gdb Version= AB V1&session Id=&f=pjson
JSON Response Syntax
A JSON object composed of a Diagram JSON Information object and the moment the update operation happens for a stored diagram: {"diagram
JSON Response Example
{
"diagramInfo": {
"tag": "",
"isStored": true,
"canStore": false,
"canExtend": true,
"isSystem": false,
"creator": "acb7352",
"creationDate": 1505145950000,
"lastUpdateBy": "acb7352",
"lastUpdateDate": 1505215730000,
"containerMargin": 0.5,
"junctionCount": 10,
"edgeCount": 12,
"containerCount": 0,
"isHistorical": false,
"aggregationCount": 0,
"access": "esriDiagramPublicAccess",
"diagramExtent": {
"xmin": 6807604.6431991458,
"ymin": 1848162.7288198769,
"xmax": 6808306.5443543941,
"ymax": 1848247.8566023856,
"spatialReference": {
"wkid": 3498,
"latestWkid": 3498
}
},
"networkExtent": {
"xmin": 6807604.6431991458,
"ymin": 1847967.7367558032,
"xmax": 6808661.8976463079,
"ymax": 1848650.1848659664,
"spatialReference": {
"wkid": 3498,
"latestWkid": 3498
}
},
"name": "DiagramTest2",
"id": "{856490C7-ED84-44FE-8EC8-5DA4B39365C0}",
"template": "Basic"
},
"moment": 1505215730810
}