# Upload file to Remote File Manager Upload file through SCAPI server to REMOTE_FILE_MANAGER bucket. Files are automatically deleted after 1 day. Endpoint: POST /v0/enterprise/{enterprise_id}/content/remote-file/ Version: 1.0.0 Security: apiKey ## Path parameters: - `enterprise_id` (string, required) A UUID string identifying this enterprise. ## Request fields (multipart/form-data): - `file` (string, required) The file to upload (max 50MB) - `filename` (string) Custom filename (optional, defaults to uploaded file name) - `content_type` (string) MIME type of the file (optional, auto-detected) ## Response 201 fields (application/json): - `file_key` (string) Unique storage key for the file Example: "123/files/document_abc123.pdf" - `bucket` (string) Storage bucket name Example: "REMOTE_FILE_MANAGER" - `file_size` (integer) Size of uploaded file in bytes Example: 1048576 - `content_type` (string) Detected/validated MIME type Example: "application/pdf" - `auto_delete_after_minutes` (integer) When file will be auto-deleted Example: 1440 - `download_url` (string) Pre-signed URL for downloading the file Example: "https://s3.amazonaws.com/REMOTE_FILE_MANAGER/123/files/document_abc123.pdf?AWSAccessKeyId=..." - `download_expires_in` (integer) Download URL expiration time in seconds Example: 3600 ## Response 400 fields (application/json): - `error` (string) Example: "No file provided" ## Response 401 fields (application/json): - `errors` (array) - `message` (string) - `status` (integer) ## Response 403 fields (application/json): - `errors` (array) - `message` (string) - `status` (integer) ## Response 413 fields (application/json): - `error` (string) Example: "File size exceeds maximum allowed size of 52428800 bytes" ## Response 500 fields (application/json): - `error` (string) Example: "Failed to upload file"