File APIs
List and manage files, folders, versions, transfers, recycle-bin items and material libraries. Upload requires pre-upload followed by binary transfer. Confirm targets before deletion or replacement.
Endpoints
| Method | Endpoint | Path |
|---|---|---|
GET |
Get download address of multiple files | /api/file/downloadMultiFiles.do |
GET |
Get download file thumbnail address | /api/file/downloadThumbnail.do |
GET |
Get download file address | /api/file/getFileDownloadUrl.do |
GET |
Pre-upload files | /api/file/preUploadFile.do |
GET |
file log | /nd/api/file/file_logs |
GET |
Get file information | /nd/api/file/fileinfo |
GET |
Get file list | /nd/api/file/list_dir |
GET |
Get all version information of a file | /nd/api/file/versions |
POST |
Copy file progress | /nd/api/file/copy_progress |
POST |
Copy files | /nd/api/file/copy |
POST |
Create folder | /nd/api/file/create_folder |
POST |
Create library categories | /nd/api/file/create_material_class |
POST |
Create sub-library | /nd/api/file/create_material_folder |
POST |
Empty Recycle Bin | /nd/api/file/empty_trash |
POST |
Move files | /nd/api/file/move |
POST |
Delete files (to recycle bin) | /nd/api/file/remove_file |
POST |
Delete files (from Recycle Bin) | /nd/api/file/remove_from_trash |
POST |
Modify file name | /nd/api/file/rename |
POST |
Recover files (from Recycle Bin) | /nd/api/file/restore_file |
POST |
Set whether the user has access to the material library | /nd/api/file/set_user_access_material_library |
POST |
Modify file information | /nd/api/file/update_file |
POST |
Set the current version of the file | /nd/api/file/version |
Completing an Upload
Call pre-upload, then POST multipart/form-data to its returned url with binary file and upload_token. Verify success, code, fileId and version. Never hard-code the upload URL; obtain another when used or expired.
Integration Notes
Based on the supplied Babel API reference. Preserve exact endpoint paths and field casing. Confirm unspecified or inconsistent field types during integration rather than assuming undocumented parameters. Use the deployment's HTTPS domain and keep credentials out of public pages.