Locks

URL:
https://<LinearReferencingService-url>/locks
Methods:
GET
Operations:
Acquire Locks, Query Locks, Release Locks
Required Capability:
The ArcGIS Location Referencing license is required to use this resource.
Version Introduced:
10.7

Description

This operation provides information on the LRS conflict prevention (or locking) scheme for a single LRS workspace in the map service. Locking is recommended to prevent conflicting edits from being applied on the same line or route by multiple persons.

The conflictPreventionEnabled property indicates whether locking is currently being enforced in an LRS. This setting applies only to branch versioned LRS feature classes in an enterprise geodatabase. File geodatabases do not require conflict prevention since concurrent editing by multiple persons is not permitted.

The lockTableFields property contains a listing of field names to enable querying of the LRS locks table.

Request parameters

ParameterDetails

f

(Optional)

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

Values: html | json | pjson

Example usage

Example 1

URL for the LRS lock information.

Use dark colors for code blocksCopy
1
https://sampleserver/arcgis/rest/services/MyLRS/MapServer/exts/LRSServer/locks?f=json

JSON Response syntax

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{
  "lrs": [
    {
      "id": "<id>",
      "name": "<name>",
      "conflictPreventionEnabled": <true | false>,
      "lockTableFields": {
        "objectIdFieldName": "<fieldName>",
        "networkIdFieldName": "<fieldName>",
        "routeIdFieldName": "<fieldName>",
        "lockUserFieldName": "<fieldName>",
        "lockVersionFieldName": "<fieldName>",
        "lockDateFieldName": "<fieldName>",
        "eventFeatureClassFieldName": "<fieldName>"
      }
    },
    ...
  ]
}

JSON Response example

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{
  "lrs": [
    {
      "id": "DFB23B7D-69D1-460F-B7E0-0FB190D23B96",
      "name": "DOT_LRS",
      "conflictPreventionEnabled": true,
      "lockTableFields": {
        "objectIdFieldName": "ObjectId",
        "networkIdFieldName": "NetworkId",
        "routeIdFieldName": "RouteId",
        "lockUserFieldName": "LockUser",
        "lockVersionFieldName": "LockVersion",
        "lockDateFieldName": "LockDateTime",
        "eventFeatureClassFieldName": "EventFeatureClass"
      }
    }
  ]
}

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