Content Manager - Files
File overview
File represents a virtual file info
Key features
- RESTful API for Create, Read, Delete actions provided
- Document Permissions supported
- Sharing supported
File metadata
Nameis an optional file name to override the original file nameSharingTypeis the enum to determine allowed sharing type:Public- anonymous access to file contentAnyoneWithLink- URL token based access to file contentRestricted- authenticated and authorized access
HowTo
- Use
FileUploadto upload file to uploaded file/blob - Use
Files/{uploadId}to create file info to uploaded file/blob
HowTo store any file
- Choose target folder (
GET /api/v1/FoldersorGET /api/v1/Folders/Search), use appropriate storage access - Upload physical file (
POST /api/v1/FileUpload) - Create a new file definition and combine with uploaded file (
POST /api/v1/Files/{uploadId}), use the same storage access - Use authenticated endpoints to get file-content (
GET /api/v1/Files/{id}orGET /api/v1/Files/Path/{path}), use the same storage access as before
HowTo store a file with anonymous access
- Choose target folder (
GET /api/v1/FoldersorGET /api/v1/Folders/Search), use Public access - Upload physical file (
POST /api/v1/FileUpload) - Create a new file definition and combine with uploaded file (
POST /api/v1/Files/{uploadId}), use Public access again and set SharingType property to Public - Use anonymous endpoints to get file-content (
GET /api/v1/PublicFiles/{id}orGET /api/v1/PublicFiles/Path/{path})
HowTo update an existing file
- Search given file (
GET /api/v1/Folders/{id}/FilesorGET /api/v1/Files/Search), use approprate storage access - Delete existing file (
DELETE /api/v1/Files/{id}), use the same storage access - Upload physical file (
POST /api/v1/FileUpload) - Create a new file definition again (
POST /api/v1/Files/{uploadId}), use the same storage access