Skip To Content
ArcGIS Developer
Dashboard

Clear Flags (Network Diagram service)

Description

The clearFlags operation is performed on a Diagram resource. This operation returns the moment (date) the clearFlags operation happens when it applies on a stored diagram.

It is used to clear all root junction, end junction, pivot junction and barrier flags on the resource diagram.

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

flagType

Required

Description: The type of flag you want to clear in the diagram; that is, esriDiagramRootJunction to manage a root junction, esriDiagramEndJunction for an end junction flag, esriDiagramPivotJunction for a pivot junction flag, and esriDiagramBarrierEdge or esriDiagramBarrierJunction for a barrier flag.

Syntax: flagType= <esriDiagramRootJunction | esriDiagramEndJunction | esriDiagramPivotJunction | esriDiagramBarrierEdge | esriDiagramBarrierJunction>

Example: flagType=esriDiagramRootJunction

f

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

Values: <html | json>

Example Usage

Deleting all root flags on the DiagramTest1 in version ABV1; that is:

  • URL: https://myserver.esri.com/server/rest/services/Naperville/NetworkDiagramServer/diagrams/DiagramTest1/clearFlags
  • Parameters:
    gdbVersion=ABV1
    sessionId=
    flagType=esriDiagramRootJunction
    f=pjson
  • Sent URL (GET): https://myserver.esri.com/server/rest/services/Naperville/NetworkDiagramServer/diagrams/DiagramTest1/clearFlags?gdbVersion=ABV1&sessionId=&flagType=esriDiagramRootJunction&f=pjson

JSON Response Syntax

{"moment": <moment>}

JSON Response Example

{
 "moment": 1504864032806
}