- URL:
- https://<root>/<serviceName>/NetworkDiagramServer/diagrams/<diagramName>/manageFlag
- Methods:
POST
- Version Introduced:
- 10.6
Description
The manage
operation allows to add or remove root junction, end junction, pivot junction and barrier flags on a particular diagram feature. It is performed on a Diagram resource. This operation returns the moment the manageFlag operation happens when it applies on 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: |
(Required) | The flag operation to perform:
Syntax: Example: |
(Required) | The type of flag you want to manage in the diagram; that is,
Syntax: Example: |
(Required) | The Diagram Element ID of the diagram feature to which you want the flag to be added or from which you want the flag to be removed, depending on the specified action. Syntax: Example: |
|
The response format. The default response format is html. Values: |
Example Usage
Adding a pivot flag on the junction which Diagram Element ID is 17 on the DiagramTest1 in version ABV1; that is:
-
URL:
https:
//myserver.esri.com/server/rest/services/Naperville/Network Diagram Server/diagrams/Diagram Test1/manage Flag -
Parameters:
Use dark colors for code blocks Copy gdbVersion=ABV1 sessionId= action=add flagType=esriDiagramPivotJunction flagID=17 f=pjson
-
Sent URL (GET):
https:
//myserver.esri.com/server/rest/services/Naperville/Network Diagram Server/diagrams/Diagram Test1/manage Flag?gdb Version=ABV1&session Id=&action=add&flag Type=esri Diagram Pivot Junction&flag ID=17&f=pjson
Adding a barrier flag on the edge which Diagram Element ID is 47 on the DiagramTest1 in version ABV1; that is:
-
URL:
https:
//myserver.esri.com/server/rest/services/Naperville/Network Diagram Server/diagrams/Diagram Test1/manage Flag -
Parameters:
Use dark colors for code blocks Copy gdbVersion=ABV1 sessionId= action=add flagType=esriDiagramBarrierEdge flagID=47 f=pjson
-
Sent URL (GET):
https:
//myserver.esri.com/server/rest/services/Naperville/Network Diagram Server/diagrams/Diagram Test1/manage Flag?gdb Version=ABV1&session Id=&action=add&flag Type=esri Diagram Barrier Edge&flag ID=47&f=pjson
Removing the pivot flag on the junction which Diagram Element ID is 9 on the DiagramTest1 in version ABV1; that is:
-
URL:
https:
//myserver.esri.com/server/rest/services/Naperville/Network Diagram Server/diagrams/Diagram Test1/manage Flag -
Parameters:
Use dark colors for code blocks Copy gdbVersion=ABV1 sessionId= action=remove flagType=esriDiagramRootJunction flagID=9 f=pjson
-
Sent URL (GET):
https:
//myserver.esri.com/server/rest/services/Naperville/Network Diagram Server/diagrams/Diagram Test1/manage Flag?gdb Version=ABV1&session Id=&action=remove&flag Type=esri Diagram Root Junction&flag ID=9&f=pjson
JSON Response Syntax
{"moment": <moment>
JSON Response Example
{
"moment": 1504862838167
}