UnLock API

Unlocks (checks in) a document or all documents in a folder at the specified path. When force is true, the calling user can unlock a document currently locked by another user — this is an administrative action that discards the other user's in-progress changes. When force is false, only the user who locked the document can unlock it.

Endpoint

/srv.asmx/UnLock

Methods

Parameters

Parameter Type Required Description
authenticationTicket string Yes Authentication ticket obtained from AuthenticateUser.
path string Yes Full infoRouter path to the document or folder (e.g. /Finance/Reports/Q1-Report.pdf). When a folder path is given, all locked documents in that folder are unlocked.
force bool Yes true to force-unlock a document locked by another user (administrator action — discards their in-progress changes). false to only unlock documents locked by the calling user.

Response

Success Response

<response success="true" error="" />

Error Response

<response success="false" error="The document is not locked by you." />

Required Permissions


Example

GET Request

GET /srv.asmx/UnLock
  ?authenticationTicket=3f2504e0-4f89-11d3-9a0c-0305e82c3301
  &path=/Finance/Reports/Q1-2024-Report.pdf
  &force=false
HTTP/1.1

POST Request

POST /srv.asmx/UnLock HTTP/1.1
Content-Type: application/x-www-form-urlencoded

authenticationTicket=3f2504e0-4f89-11d3-9a0c-0305e82c3301
&path=/Finance/Reports/Q1-2024-Report.pdf
&force=false

SOAP Request

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
               xmlns:tns="http://tempuri.org/">
  <soap:Body>
    <tns:UnLock>
      <tns:authenticationTicket>3f2504e0-4f89-11d3-9a0c-0305e82c3301</tns:authenticationTicket>
      <tns:path>/Finance/Reports/Q1-2024-Report.pdf</tns:path>
      <tns:force>false</tns:force>
    </tns:UnLock>
  </soap:Body>
</soap:Envelope>

Notes



Error Codes

Error Description
[900] Authentication failed Invalid or missing authentication ticket.
[901] Session expired or Invalid ticket The ticket has expired or does not exist.
Document or folder not found The specified path does not resolve to an existing document or folder.
Not locked by you force=false and the document is locked by a different user.
Access denied force=true requires administrator or domain manager rights.
SystemError:... An unexpected server-side error occurred.

For detailed documentation visit: https://support.inforouter.com/api-docs/UnLock