Skip to main content

Module management

Module management 

Source
Expand description

File management (PATCH, DELETE, restore, duplicate) handlers

Structs§

DeleteFileQuery
DELETE /file/:fileId - Move file to trash (soft delete) DELETE /file/:fileId?permanent=true - Permanently delete file (only from trash)
DeleteFileResponse
DuplicateFileRequest
POST /api/files/:fileId/duplicate - Duplicate a CRDT or RTDB file
EmptyTrashResponse
DELETE /trash - Empty trash (permanently delete all files in trash)
PatchFileResponse
PATCH /file/:fileId - Update file metadata Uses UpdateFileOptions with Patch<> fields for proper null/undefined handling
PatchFileUserDataRequest
PATCH /file/:fileId/user - Update user-specific file data (pinned/starred)
PatchFileUserDataResponse
RestoreFileRequest
POST /file/:fileId/restore - Restore file from trash
RestoreFileResponse

Functions§

delete_file
duplicate_file
empty_trash
patch_file
patch_file_user_data
restore_file
upgrade_file_visibility
Upgrade file visibility to match target visibility (only if more permissive)