- URL:
- https://<root>/<serviceName>/NetworkDiagramServer/diagrams/<diagramName>/saveLayout
- Methods:
POST
- Version Introduced:
- 10.6
Description
The save
operation applies and saves new geometries that may have been computed for a set of diagram features represented in a diagram. It is performed on a Diagram resource. The result of this operation is a Diagram JSON Information object, and the moment (date) the saveLayout operation happens for a stored diagram.
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 couples {"ID": <jctDEID>,"geometry": <geometry>} providing the new geometry for each edited junction, those diagram junctions being identified thanks to their Diagram Element ID. Syntax: Example: |
| An array of couples {"ID": <containerDEID>,"geometry": <geometry>} providing the new geometry for each edited container, those diagram containers being identified thanks to their Diagram Element ID. Syntax: Example: |
| An array of couples {"ID": <edgeDEID>,"geometry": <geometry>} providing the new geometry for each edited edge, those diagram edges being identified thanks to their Diagram Element ID. Syntax: Example: |
|
The response format. The default response format is html. Values: |
Example Usage
Applying and saving a new geometry for the container which diagram element ID is 11 in the diagram DiagramTest3 in version ABV1; that is:
-
URL:
https:
//myserver.esri.com/server/rest/services/Quick Start/Network Diagram Server/diagrams/Diagram Test3/save Layout -
Parameters:
Use dark colors for code blocks Copy gdbVersion=ABV1 sessionId= junctions= containers=["ID"=11,"geometry"={"rings": [[[6808810.40423905849,1847930.7971971333],[6808810.40423905849,1847931.79719513655],[6808847.84379673,1847931.79719513655],[6808847.84379673,1847930.7971971333],[6808810.40423905849,1847930.7971971333]]]}}] edges= f=pjson
-
Sent URL (GET):
https:
//myserver.esri.com/server/rest/services/Quick Start/Network Diagram Server/diagrams/Diagram Test3/save Layout?gdb Version=ABV1&session Id=&junctions=&containers=%5B%22ID%22%3D11%2C%22geometry%22%3D%7B%22rings%22%3A+%5B%5B%5B6808810.40423905849%2C1847930.7971971333%5D%2C%5B6808810.40423905849%2C1847931.79719513655%5D%2C%5B6808847.84379673%2C1847931.79719513655%5D%2C%5B6808847.84379673%2C1847930.7971971333%5D%2C%5B6808810.40423905849%2C1847930.7971971333%5D%5D%5D%7D%7D%5D&edges=&f=pjson
:
JSON Response Syntax
A JSON object composed of a Diagram JSON Information object and a moment: {"diagram
JSON Response Example
{
"diagramInfo": {
"tag": "",
"isStored": true,
"canStore": false,
"canExtend": true,
"isSystem": false,
"creator": "acb7352",
"creationDate": 1505219137000,
"lastUpdateBy": "acb7352",
"lastUpdateDate": 1505219137000,
"containerMargin": 0.5,
"junctionCount": 11,
"edgeCount": 10,
"containerCount": 1,
"aggregationCount": 0,
"isHistorical": false,
"access": "esriDiagramPublicAccess",
"diagramExtent": {
"xmin": 6807591.7656002343,
"ymin": 1847967.7367558032,
"xmax": 6808661.8976463079,
"ymax": 1848650.1848659664,
"spatialReference": {
"wkid": 3498,
"latestWkid": 3498
}
},
"networkExtent": {
"xmin": 6807591.7656002343,
"ymin": 1847967.7367558032,
"xmax": 6808661.8976463079,
"ymax": 1848650.1848659664,
"spatialReference": {
"wkid": 3498,
"latestWkid": 3498
}
},
"name": "DiagramTest3",
"id": "{033B675B-0DFF-4E82-85BC-85DD1235D42C}",
"template": "Basic"
},
"moment": 1505221599567
}