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

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

Downloads up to 100 picked icons from any collections as one pack ZIP.

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-icons

Example

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

Description

The addresses travel in the URL because a download has to be a link, which is why the limit is 100. The pack is named selection. If any address is not there, nothing is exported and 404 easy_svg_pro_no_icon lists the missing ones. 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
refsarray<string>
Required

The picked icons, collection/slug, 1 to 100.

Return value

returnWP_REST_Response|WP_Error

On success the ZIP bytes (selection.zip), not JSON. 404 easy_svg_pro_no_icon, 501 easy_svg_pro_no_zip, 500 easy_svg_pro_zip_failed.