Skip to main content

Create zip request by json

note

[Since 2017.03]

Put files' ids to temporary store for future zip download.

POST /api/v1/files/zip HTTP/1.1
  1. Response fields
PathTypeDescription
requestIdStringGenerated request id for future download
  1. Example request
curl 'http://localhost:8080/api/v1/files/zip' -i -X POST \
-H 'Content-Type: application/json' \
-H 'X-co-auth-token: 1b6b225806459f78a277478489ae53cb' \
-d '[ "file1", "file2", "file3" ]'
  1. Response structure
{
"requestId": "6e454a684e543669736b335158366472"
}
  1. Example response
HTTP/1.1 200 OK
X-co-request-id: 79544f67374c6c507a44656c4631717a
Content-Type: application/json
Content-Length: 54
{
"requestId": "6e454a684e543669736b335158366472"
}