Add the power of the Box AI API to your custom apps at Content Cloud Summit on May 15

Learn more and register!

Get Folder Lock

Get Folder Lock

To get a list of the current locks on a folder in Box, call the GET /folder_locks/ API with the id of the folder supplied as a folder_id query string parameter.

Folder Locks

When using any folder lock API endpoints, you must be authenticated as the owner/co-owner of the folder you are trying to access.

curl -i -X GET "" \
     -H "authorization: Bearer <ACCESS_TOKEN>"
client.folders.listLocks(folderId: "22222") { results in
    switch results {
    case let .success(iterator):
        for i in 1 ... 10 {
   { result in
                switch result {
                case let .success(folderLock):
                    print("- \(")
                case let .failure(error):
    case let .failure(error):
TypeScript (Beta)
await client.folderLocks.getFolderLocks({
} satisfies GetFolderLocksQueryParams);
Python (Beta)
.NET (Beta)
await client.FolderLocks.GetFolderLocksAsync(queryParams: new GetFolderLocksQueryParams(folderId: folder.Id));

Folder ID

The id of any folder can be determined by visiting a folder in the web application and copying the id from the URL. For example, for the URL https://* the folder_id is 123.