REST APIeasy-svg-pro/v1/packs/export-bundle

easy-svg-pro/v1/packs/export-bundle

Downloads up to 25 collections as one ZIP holding one pack per collection.

REST endpoint · Easy SVG Pro · Status: Internal · Defined in includes/core/rest.php

Internal: not part of the promised public surface. It may change without notice.

Usage

GET /wp-json/easy-svg-pro/v1/packs/export-bundle

Example

curl -u admin:app-password -o packs.zip 'https://example.com/wp-json/easy-svg-pro/v1/packs/export-bundle?collections[]=acme&collections[]=house-icons'

Description

Not one merged pack: each inner ZIP is a normal pack the import accepts unchanged, so every icon keeps the collection it came from. If a single pack fails, no bundle is built. The file is named easy-svg-packs-YYYY-MM-DD.zip. Permission: Requires manage_options and an active licence. No single feature flag is needed.

Permission: Requires manage_options and an active licence. No single feature flag is needed.

Parameters

query
collectionsarray<string>
Required

The collection slugs to export, 1 to 25.

Return value

returnWP_REST_Response|WP_Error

On success the bundle ZIP bytes, not JSON. 400 easy_svg_pro_no_collection or easy_svg_pro_too_many_collections, 404 easy_svg_pro_no_collection for unknown slugs, 501 easy_svg_pro_no_zip, 500 easy_svg_pro_zip_failed.