Zip files by link UID specified in previous zip request
note
[Since 201.04]
Zip files by link UID specified in previous zip request.
POST /api/v1/public/{linkUid}/zip/{zipRequestId} HTTP/1.1
- Path parameters
| Parameter | Description |
|---|---|
linkUid | The UID of the link for the folder. |
zipRequestId | Id of a zip request created before this request |
- Request parameters
| Parameter | Description |
|---|---|
accessToken | The access token for file |
filename | Result file name. If not specified, default name will be set |
- Example request
curl 'http://localhost:8080/api/v1/public/9737bc8e-ac64-4b98-9525-4f12f084f501/zip/6672657276645745504e5a7a54727774?accessToken=ymglvxzfsniliaiibrcqbubtufqwcgai&filename=newfile.zip' -i -X GET \
-H 'X-co-auth-token: 80516dbeb62b7a3f4728516a8896470c'
- Example response headers
HTTP/1.1 200 OK
X-co-request-id: 5148646e667a427873516553516a427a
X-co-zip-request-id: 6672657276645745504e5a7a54727774
Content-Disposition: attachment; filename*=UTF-8''newfile.zip
Content-Type: application/zip
Content-Length: 398
[ content of the response is skipped ]
- Example response
HTTP/1.1 200 OK
X-co-request-id: 5148646e667a427873516553516a427a
X-co-zip-request-id: 6672657276645745504e5a7a54727774
Content-Disposition: attachment; filename*=UTF-8''newfile.zip
Content-Type: application/zip
Content-Length: 398
[ content of the response is skipped ]