Zip files and folders
A request to download zipped files and folders.
Заметка
[Since 2017.01]
::: Please note this request may execute for a long time, so tune your client’s timeout. :::
POST /api/v1/files/zip HTTP/1.1
- Request parameters
| Parameter | Description |
|---|---|
id | File id’s to be included to archive |
filename | Generated archive file name |
- Example request
curl 'http://localhost:8080/api/v1/files/zip?id=189393382&id=189393548&filename=myarchive.zip' -i -X GET \
-H 'X-co-auth-token: 7c20e57cf9eeb818f7fd376a6940b84f'
- Example response
HTTP/1.1 200 OK
X-co-request-id: 69686e6e616377765364615a6c627243
Content-Disposition: attachment; filename*=UTF-8''myarchive.zip
Content-Type: application/zip
Content-Length: 398
[ content of the response is skipped ]