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
- Response fields
| Path | Type | Description |
|---|---|---|
requestId | String | Generated request id for future download |
- 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" ]'
- Response structure
{
"requestId": "6e454a684e543669736b335158366472"
}
- Example response
HTTP/1.1 200 OK
X-co-request-id: 79544f67374c6c507a44656c4631717a
Content-Type: application/json
Content-Length: 54
{
"requestId": "6e454a684e543669736b335158366472"
}