This is a Technology Preview operation. It is subject to change or removal without notice as part of our innovation process.
Returns locks released in changesets strictly after the specified changeset index. Only fully released locks are returned — objects that were demoted from exclusive to shared are not included.
Note: Page size refers to the total size of returned objectIds throughout all returned instances. If several Released Lock instances are returned that does not necessarily mean that each instance is complete and more objectIds might be returned for that specific instance in a different page.
Authentication
Requires Authorization header with valid Bearer token for scope itwin-platform.
For more documentation on authorization and how to get access token visit OAUTH2 Authorization page.
Authorization
User must have imodels_webview permission assigned at the iModel level. If iModel Role permissions at the iModel level are configured, then user must additionally have at least imodels_webview permission assigned at the iTwin level. If permissions at the iModel level are not configured, then user must have imodels_webview permission assigned at the iTwin level.
Alternatively the user should be an Organization Administrator for the Organization that owns a given iTwin the iModel belongs to.
For more information please refer to Account Administrator documentation section on Access Control API documentation page.
Rate limits
All iTwin Platform API operations have a rate limit. For more documentation on that visit Rate limits and quotas page.
Request parameters
iModel id
Returns locks released in changesets strictly after the specified changeset index. Value must be a non-negative integer.
The $top query option requests the number of items in the queried collection to be included in the result. E.g. to return only first collection item provide the following query: $top=1. When $top parameter is not provided default is set to 100. $top value cannot exceed 1000.
Token to retrieve next page in paginated response. Generated by the service and must be sent as is. Currently $skip parameter is being used by default. To initialize usage of continuation token empty $continuationToken must be provided with the first page query: $continuationToken=. $continuationToken is mutual exclusive with $skip parameter.
Deprecated The $skip query option requests the number of items in the queried collection that are to be skipped and not included in the result. E.g. to return items from the collection starting at the third place provide the following query: $skip=2. $skip is mutual exclusive with $continuationToken parameter.
Request headers
OAuth access token with itwin-platform scope
Setting to application/vnd.bentley.itwin-platform.v2+json is recommended.
Response 200 OK
OK
{ "releasedLocks": [{ "lockLevel": "exclusive", "objectIds": ["0x1", "0x2", "0xab"] }, { "lockLevel": "shared", "objectIds": ["0x3", "0x4"] }], "_links": { "self": { "href": "https://api.bentley.com/imodels/a6abccea-9e69-4654-8068-33d62daec8ec/locks/released-locks?afterChangesetIndex=0&$skip=0&$top=100" }, "next": { "href": null }, "prev": { "href": null } } }
Response 401 Unauthorized
This response indicates that request lacks valid authentication credentials. Access token might not been provided, issued by the wrong issuer, does not have required scopes or request headers were malformed.
{ "error": { "code": "HeaderNotFound", "message": "Header Authorization was not found in the request. Access denied." } }
Response 404 Not Found
Specified iModel was not found.
{ "error": { "code": "iModelNotFound", "message": "Requested iModel is not available." } }
Response 422 Unprocessable Entity
The 422 (Unprocessable Entity) status code indicates that the request cannot be processed by the server due to a client error (e.g. malformed request syntax)
{ "error": { "code": "InvalidiModelsRequest", "message": "Cannot get Locks.", "details": [{ "code": "MissingRequiredParameter", "message": "Required parameter is missing.", "target": "afterChangesetIndex" }] } }
Response 429 Too many requests
This response indicates that the client sent more requests than allowed by this API for the current tier of the client.
{ "error": { "code": "RateLimitExceeded", "message": "The client sent more requests than allowed by this API for the current tier of the client." } }
Response headers
Number of seconds to wait until client is allowed to make more requests.
Link
Hyperlink container.
Hyperlink to the specific entity.
{ "type": "object", "nullable": true, "properties": { "href": { "type": "string", "description": "Hyperlink to the specific entity." } }, "description": "Hyperlink container.", "additionalProperties": false }
Error
Contains error information.
One of a server-defined set of error codes.
The target of the error.
A human-readable representation of the error.
{ "type": "object", "required": [ "code", "message" ], "properties": { "code": { "type": "string", "description": "One of a server-defined set of error codes." }, "target": { "type": "string", "nullable": true, "description": "The target of the error." }, "message": { "type": "string", "description": "A human-readable representation of the error." } }, "description": "Contains error information.", "additionalProperties": true }
Paging Links
URLs for redoing the current request, getting to the previous or next page of results, if applicable.
{ "type": "object", "title": "Paging Links", "properties": { "next": { "$ref": "#/components/schemas/Link" }, "prev": { "$ref": "#/components/schemas/Link" }, "self": { "$ref": "#/components/schemas/Link" } }, "description": "URLs for redoing the current request, getting to the previous or next page of results, if applicable.", "additionalProperties": false }
Released Lock lockLevel
The lock level of the released objects.
{ "enum": [ "shared", "exclusive" ], "type": "string", "description": "The lock level of the released objects.", "title": "Released Lock lockLevel" }
Released Lock
Contains a list of object ids released at a given lock level.
List of released object ids.
{ "type": "object", "title": "Released Lock", "properties": { "lockLevel": { "enum": [ "shared", "exclusive" ], "type": "string", "description": "The lock level of the released objects.", "title": "Released Lock lockLevel", "$ref": "#/components/schemas/ReleasedLock-lockLevel" }, "objectIds": { "type": "array", "items": { "type": "string" }, "description": "List of released object ids." } }, "description": "Contains a list of object ids released at a given lock level.", "additionalProperties": false }
Error Response
Gives details for an error that occurred while handling the request. Note that clients MUST NOT assume that every failed request will produce an object of this schema, or that all of the properties in the response will be non-null, as the error may have prevented this response from being constructed.
{ "type": "object", "title": "Error Response", "required": [ "error" ], "properties": { "error": { "$ref": "#/components/schemas/Error", "description": "Error information." } }, "description": "Gives details for an error that occurred while handling the request. Note that clients MUST NOT assume that every failed request will produce an object of this schema, or that all of the properties in the response will be non-null, as the error may have prevented this response from being constructed.", "additionalProperties": false }
Released Locks Response
List of Released Locks.
{ "type": "object", "title": "Released Locks Response", "properties": { "_links": { "$ref": "#/components/schemas/PagingLinks" }, "releasedLocks": { "type": "array", "items": { "$ref": "#/components/schemas/ReleasedLock" }, "description": "List of released locks grouped by lock level." } }, "description": "List of Released Locks.", "additionalProperties": false }
Was this page helpful?