Skip To Content

Store (Network Diagrams)

Description

The store operation is performed on a Diagram resource. The result of this operation is a Diagram JSON Information object, and the moment the store operation happens.

It is used to store the temporary network diagram resource in the database.

License:
The active portal account must be licensed with the ArcGIS Advanced Editing user type extension to use this operation.

Request Parameters

ParameterDetails
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

name

Required

Description: The name of the network diagram to be stored.

Syntax: name=<diagramName>

Example: name=DiagramTest1

tag

Description: One or several tags that could help querying the stored diagram in an easier way afterwards (string). You can use the '#' character as a separator for each tag you want to specify.

Syntax: tag=<tag1>#<tag2>

Example: tag=Expanded#Area1#North West Circuit B

access

Required

Description: The access right level you want to set for the stored diagram:

  • esriDiagramPublicAccess—Anyone will have full access rights on the diagram; that is, view/edit/update/overwrite/delete permissions on it.
  • esriDiagramProtectedAccess— Anyone will have view and read access rights on the diagram, but they will have no permission for editing/update/overwriting/nor deleting the diagram.
  • esriDiagramPrivateAccess—No access to the diagram—nor to view nor to edit it—for anyone except its owner

Syntax: access=<esriDiagramPublicAccess | esriDiagramProtectedAccess | esriDiagramPrivateAccess>

Example: access=esriDiagramPublicAccess

f

Description: The response format. The default response format is html.

Values: <html | json>

Example Usage

Storing a temporary diagram created in version ABV1 as "DiagramTest3" with public right access level; that is:

  • URL: https://myserver.esri.com/server/rest/services/Naperville/NetworkDiagramServer/diagrams/7C458C4491F94B5591635AFA029816FF/store
  • Parameters:
    gdbVersion=ABV1
    sessionId=
    name=DiagramTest3
    tag=
    access=esriDiagramPublicAccess
    f=pjson
  • Sent URL (GET): https://myserver.esri.com/server/rest/services/Naperville/NetworkDiagramServer/diagrams/7C458C4491F94B5591635AFA029816FF/store?gdbVersion=ABV1&sessionId=&name=DiagramTest3&tag=&access=esriDiagramPublicAccess&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": true,
  "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": 1505219137037
}