- URL:https://<diagram-url>/overwriteFromFeatures
- Version Introduced: 10.6
Description
The overwriteFromFeatures operation is performed on a Diagram resource. The result of this operation is a Diagram JSON Information object, and the moment (date) the overwriteFromFeatures operation happens for a stored diagram.
It is used to overwrite the diagram resource content from a set of utility network feature Global IDs.
License:
The active portal account must be licensed with the ArcGIS Advanced Editing user type extension to use this operation.Request Parameters
Parameter | Details |
---|---|
gdbVersion | Description: The name of the geodatabase version. Syntax: gdbVersion=<version> Example: gdbVersion=ABV1 |
sessionId | Description: The token (guid) used to lock the version. Syntax: sessionId=<guid> Example: sessionId=44G259DE-87B0-407D-8F2E-DCB7665DD0F0 |
initialFeatures | Required Description: An array of utility network feature Global IDs, those features being those used to overwrite the diagram resource. Syntax: initialFeatures=["<globalID1>", ...,"<globalIDN>] Example: initialFeatures=["{22E157ED-68A0-407D-9F06-A030C5A1995F}","{BDCD6D28-D03B-4099-8F2E-DCB7665DD0F0}"] |
f | Description: The response format. The default response format is html. Values: <html | json> |
Example Usage
Overwriting the diagram called DiagramTest1 with the following set of utility network features Global IDs ["{22E157ED-68A0-407D-9F06-A030C5A1995F}","BDCD6D28-D03B-4099-8F2E-DCB7665DD0F0}"]; that is:
- URL: https://myserver.esri.com/server/rest/services/Naperville/NetworkDiagramServer/diagrams/DiagramTest1/overwriteFromFeatures
- Parameters:
gdbVersion= sessionId= initialFeatures=["{22E157ED-68A0-407D-9F06-A030C5A1995F}","BDCD6D28-D03B-4099-8F2E-DCB7665DD0F0}"] f=pjson
- Sent URL (GET): https://myserver.esri.com/server/rest/services/Naperville/NetworkDiagramServer/diagrams/DiagramTest1/overwriteFromFeatures?gdbVersion=&sessionId=&initialFeatures=%5B%22%7B22E157ED-68A0-407D-9F06-A030C5A1995F%7D%22%2C%22BDCD6D28-D03B-4099-8F2E-DCB7665DD0F0%7D%22%5D&f=pjson
JSON Response Syntax
A JSON object composed of a Diagram JSON Information object and a moment: {"diagramInfo": Diagram JSON Information, "moment": <moment>}
Note:
The moment is only returned for a stored diagram.
JSON Response Example
{
"diagramInfo": {
"tag": "",
"isStored": true,
"canStore": false,
"canExtend": false,
"isSystem": false,
"creator": "acb7352",
"creationDate": 1503065870000,
"lastUpdateBy": "acb7352",
"lastUpdateDate": 1503066458000,
"containerMargin": 0.5,
"junctionCount": 11,
"edgeCount": 10,
"containerCount": 2,
"aggregationCount": 0,
"isHistorical": false,
"access": "esriDiagramPublicAccess",
"diagramExtent": {
"xmin": 1034510.4869008437,
"ymin": 1871859.3734351993,
"xmax": 1034521.7178495117,
"ymax": 1871863.1050550342,
"spatialReference": {
"wkid": 102671,
"latestWkid": 3435
}
},
"networkExtent": {
"xmin": 1034510.9868998453,
"ymin": 1871859.8734342009,
"xmax": 1034521.2178505138,
"ymax": 1871862.6050560325,
"spatialReference": {
"wkid": 102671,
"latestWkid": 3435
}
},
"name": "DiagramTest1",
"id": "{22C1EEB8-1152-440F-B2FF-6B7C6A43076E}",
"template": "ExpandContainers"
},
"moment": 1503066456693
}