Download Files
Summary
Downloads a file from your site. When more than one file is downloaded, the files are first zipped into a single archive before the download starts, and the resulting zip file is named to match the downloadArchiveName parameter.
When multiple resources are requested and any of them cannot be downloaded, the response contains the first error and no files are downloaded.
Endpoint
GET https://mysite.files.com/api/v2/resources/download
Replace mysite.files.com with your site address.
Request Parameters
| Name | Data Type | Description |
|---|---|---|
resources | array(string) | Required. Array of files or folders to be downloaded. Specify each item as either the complete path (e.g. my/folder/file.txt) or as a resource ID (e.g. id:31415926535). |
downloadArchiveName | string | The name to use for the result archive. It is included in the response's Content-Disposition header. |