ZIP & Download
Zip single or multiple files or folders and download them immediately.
Endpoint
http
GET /api/v1/zipParameters
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
items | item_id | - | items parameter contain 2 values separated by pipe ` |
1. item_id | uuid | yes | The UUID of the requested item |
2. type | string | yes | The type of the requested item. Allowed types are folder or file. |
Request example
sh
curl --location --request GET 'https://files.ro/api/v1/zip?items={item_id}|file,{item_id}|folder' \
--header 'Authorization: Bearer {token}'Response
text
Returns a ZIP archive (application/zip) containing the requested items.json
{
"type": "error",
"message": "You are not authorized"
}json
{
"message": "The given data was invalid.",
"errors": {
"field": [
"The field is required."
]
}
}