put
https://{server}/api/v2.1/via-repo-token/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
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
400Invalid path, operation or expire; file is already locked (lock) or not locked (unlock)
403Permission denied (token without rw permission) or the file was locked by another user
404Library or file not found