Lock/Unlock file

Lock, unlock or refresh the lock of a file. Requires read-write permission on the parent folder. Locked files cannot be modified by other users.

  • lock: optional expire = lock duration in seconds (0 = server default). Fails with 400 File is locked if the file is already locked.
  • unlock: allowed for the lock owner, the library owner and library admins.
  • refresh-lock: only for the lock owner; optional expire (>= 0).
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required
^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$

The unique identifier of a library

Query Params
string
required

The path of the file in the library

Body Params
string
enum
required
Allowed:
integer

Lock duration in seconds (lock, refresh-lock). 0 = default duration.

Responses

Language
Credentials
Bearer
Account-Token
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json