Retrieves folder lock details for a given folder.
You must be authenticated as the owner or co-owner of the folder to use this endpoint.
This operation is performed by calling function getFolderLocks.
See the endpoint docs at API Reference.
try await client.folderLocks.getFolderLocks(queryParams: GetFolderLocksQueryParams(folderId: folder.id))
- queryParams
GetFolderLocksQueryParams- Query parameters of getFolderLocks method
- headers
GetFolderLocksHeaders- Headers of getFolderLocks method
This function returns a value of type FolderLocks.
Returns details for all folder locks applied to the folder, including the lock type and user that applied the lock.
Creates a folder lock on a folder, preventing it from being moved and/or deleted.
You must be authenticated as the owner or co-owner of the folder to use this endpoint.
This operation is performed by calling function createFolderLock.
See the endpoint docs at API Reference.
try await client.folderLocks.createFolderLock(requestBody: CreateFolderLockRequestBody(folder: CreateFolderLockRequestBodyFolderField(id: folder.id, type: "folder"), lockedOperations: CreateFolderLockRequestBodyLockedOperationsField(move: true, delete: true)))
- requestBody
CreateFolderLockRequestBody- Request body of createFolderLock method
- headers
CreateFolderLockHeaders- Headers of createFolderLock method
This function returns a value of type FolderLock.
Returns the instance of the folder lock that was applied to the folder, including the user that applied the lock and the operations set.
Deletes a folder lock on a given folder.
You must be authenticated as the owner or co-owner of the folder to use this endpoint.
This operation is performed by calling function deleteFolderLockById.
See the endpoint docs at API Reference.
try await client.folderLocks.deleteFolderLockById(folderLockId: folderLock.id!)
- folderLockId
String- The ID of the folder lock. Example: "12345"
- headers
DeleteFolderLockByIdHeaders- Headers of deleteFolderLockById method
This function returns a value of type ``.
Returns an empty response when the folder lock is successfully deleted.