REST APIeasy-svg-pro/v1/bulk/move

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

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

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

body
iconsstring[]
Required

The icon references to act on, as collection/slug.

body
set_idinteger
Required

The icon set to copy or move into. Minimum 1.

Return value

returnobject

{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"
    }
  ]
}
Moving breaks every page that still names the old collection/slug until you replace it.