easy-svg-pro/v1/bulk/move
Moves chosen icons into an icon set and removes them from the set they came from.
REST endpoint · Easy SVG Pro · Status: Internal · Defined in includes/bulk/bulk.php
Usage
POST /wp-json/easy-svg-pro/v1/bulk/move
Example
curl -X POST "https://example.com/wp-json/easy-svg-pro/v1/bulk/move" \
-H "X-WP-Nonce: $NONCE" -b "$COOKIES" \
-H "Content-Type: application/json" \
-d '{"icons": ["acme/arrow"], "set_id": 42}'
Description
A move is a copy followed by removing each successfully copied icon from its source set. Icons from the free library are copied but never removed there, and are reported as library_kept. Anything already pointing at the old collection/slug keeps pointing there and has to be repointed, for example with the replace route.
Permission: manage_options and an active licence with the Bulk editing feature switched on under Icons, Features.
Parameters
The icon references to act on, as collection/slug.
The icon set to copy or move into. Minimum 1.
Return value
{report: [{icon, state}]} with state moved, copied, exists, no_markup or library_kept. 404 easy_svg_pro_no_set for an unknown target.
Response
{report: [{icon, state}]} with state moved, copied, exists, no_markup or library_kept. 404 easy_svg_pro_no_set for an unknown target.
{
"report": [
{
"icon": "arrow",
"state": "moved"
}
]
}