Skip to content
URL:
https://<root>/<serviceName>/VersionManagementServer/versions/<versionGuid>/deleteForwardEdits
Methods:
POST
Required Capability:
Edit privilege (features:user:edit)
Version Introduced:
10.6

Description

The deleteForwardEdits operation deletes all forward edits from the moment provided in an edit session.

Use this operation when a client application manages an edit session made of multiple operations and intends to support an undo/redo stack. If undo is used during an edit session the deleteForwardEdits operation must be called prior to the next applyEdits operation or the stopEditing operation to delete the forward edits. The time stamps for each edit operation must be carefully managed.

Requires the same sessionID and organization member used for the startEditing operation.

Review the read and edit session requirements for version resource operations.

Request parameters

ParameterDetails

f

Specifies the output format of the response. The default response format is html.

Values: html | json | pjson

sessionId (Required)

Specifies the client-generated session ID (GUID).

Syntax: sessionId = <guid>

Example: sessionId = {3F2504E0-4F89-41D3-9A0C-0305E82C3301}

moment (Required)

Specifies a specific applyEdits operation moment after which all subsequent (forward) edits will be deleted.

Syntax: moment = <Epoch time in seconds>

Example: moment = 1603109596000

JSON Response syntax

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
{
  "success" : <true | false>,
  "error" : { // only if success is false
    "extendedCode" : <HRESULT>,
    "message" : <error message>,
    "details" : [ <detail> ]
  }
}

Example usage

During an edit session, the deleteForwardEdits operation is called before the stopEditing operation to delete edits from the moment specified forward.

Request URL and parameters:

https://myserver.esri.com/server/rest/services/LandUse/VersionManagementServer/versions/24417758-0DBD-4EC3-95B0-467CAA47FC43/deleteForwardEdits

Use dark colors for code blocksCopy
1
2
3
f=json
sessionId={638ed440-b81f-406c-bd5d-757c91dbfd70}
moment=1691093291637

JSON response:

Use dark colors for code blocksCopy
1
2
3
{
 "success": true
}

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