v4
latestSwagger 2.02026-08-0343714211.7 MBlocks
Locks
List Locks by Path
List Locks by Path
get/locks/{path}
Path parameters
pathstring required
Path to operate on.
Query parameters
cursorstring
Used for pagination. When a list request has more records available, cursors are provided in the response headers X-Files-Cursor-Next and X-Files-Cursor-Prev. Send one of those cursor value here to resume an existing list from the next available record. Note: many of our SDKs have iterator methods that will automatically handle cursor-based pagination.
per_pageinteger
Number of records to show per page. (Max: 10000, 1,000 or less is recommended).
include_childrenboolean
Include locks from children objects?
Response
A list of Locks objects.
Example response
[
{
"path": "locked_file",
"timeout": 1,
"depth": "infinity",
"recursive": true,
"owner": "user",
"scope": "shared",
"token": "17c54824e9931a4688ca032d03f6663c",
"type": "write",
"user_id": 1,
"username": "username"
}
]