Skip to content

Zip multiple assets

POST
/api/assets/zip/{configId}
curl --request POST \
--url https://example.com/api/assets/zip/example \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '[ "asset-123", "asset-456", "asset-789" ]'

Creates a ZIP archive containing multiple assets by their IDs. Returns the ZIP file for download.

configId
required
string
Media typeapplication/json

Array of asset IDs to zip together

Array<string>
Example
[
"asset-123",
"asset-456",
"asset-789"
]

ZIP file containing requested assets

Media typeapplication/zip
string format: binary

Error zipping assets

Media typeapplication/json
object
error
required

Indicates an error occurred

boolean
message
required

Error message describing what went wrong

string
Example
{
"error": true,
"message": "Item not found"
}

Path not found

Media typeapplication/json
object
error
required

Indicates an error occurred

boolean
message
required

Error message describing what went wrong

string
Example
{
"error": true,
"message": "Item not found"
}