Lock/Unlock file

Lock or unlock a file; locked files cannot be modified by other users. Requires a token with rw permission.

The lock is created in the name of the user who generated the API token. A file can only be unlocked via this endpoint if it was locked by that user.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Query Params
string
required

Path to the file

Body Params
string
enum
required
Allowed:
integer
Defaults to 0

Only for lock: lock duration in seconds. 0 uses the server's default lock duration.

Responses

400

Invalid path, operation or expire; file is already locked (lock) or not locked (unlock)

403

Permission denied (token without rw permission) or the file was locked by another user

404

Library or file not found

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