Store

URL:
https://<root>/<serviceName>/NetworkDiagramServer/diagrams/<diagramName>/store
Methods:
POST
Version Introduced:
10.6

Description

The store operation stores the temporary diagram in the database. It is performed on a Diagram resource. The result of this operation is a Diagram JSON Information object, and the moment the store operation happens.

Request Parameters

ParameterDetails

gdbVersion

The name of the geodatabase version.

Syntax: gdbVersion=<version>

Example: gdbVersion=ABV1

sessionId

The token (guid) used to lock the version.

Syntax: sessionId=<guid>

Example: sessionId=44G259DE-87B0-407D-8F2E-DCB7665DD0F0

name


(Required)

The name of the network diagram to be stored.

Syntax: name=<diagramName>

Example: name=DiagramTest1

tag

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)

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

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:

    1
    2
    3
    4
    5
    6
    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": , "moment": <moment>}

JSON Response Example

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{
 "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
}

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.

You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

Your ArcGIS portal

Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

Your ArcGIS Location Platform dashboard

Manage billing, monitor service usage, and access additional resources.

Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

Close