Skip to main content

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
  1. Request parameters
ParameterDescription
idFile id’s to be included to archive
filenameGenerated archive file name
  1. 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'
  1. 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 ]