Purge Lock

URL:
https://<root>/<serviceName>/VersionManagementServer/purgeLock
Methods:
POST
Required Capability:
ArcGIS Advanced Editing user type extension license
Version Introduced:
10.7.1

Description

The purgeLock operation deletes all locks for the specified version.

The following user accounts can run the purgeLock operation:

  • Version owner
  • Service owner
  • Portal administrator

Request parameters

ParameterDetails

f

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

Values: html | json | pjson

versionName (Required)

Specifies the qualified name of the version that is locked, for example, owner.version_name.

Syntax:versionName=<versionName>

Example: unadmin.test

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

Delete the locks for a specific version using the purgeLock operation:

Request URL and parameters:

https://myserver.esri.com/server/rest/services/LandUse/VersionManagementServer/purgeLock

Use dark colors for code blocksCopy
1
2
f=json
versionName=unadmin.test

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.