easy-svg-pro/v1/bulk/copy
Kopiert gewählte Icons in ein Icon-Set, ohne dort vorhandene Namen zu überschreiben.
REST-Endpunkt · Easy SVG Pro · Status: Intern · Definiert in includes/bulk/bulk.php
Verwendung
POST /wp-json/easy-svg-pro/v1/bulk/copy
Beispiel
curl -X POST "https://example.com/wp-json/easy-svg-pro/v1/bulk/copy" \
-H "X-WP-Nonce: $NONCE" -b "$COOKIES" \
-H "Content-Type: application/json" \
-d '{"icons": ["easy-svg/arrow"], "set_id": 42}'
Beschreibung
Liest das Markup jedes gewählten Icons aus dem Bestand und fügt es additiv ins Ziel-Set ein, über denselben Schreibweg wie der Set-Editor. Ein Icon, dessen Slug im Ziel schon existiert, wird als exists gemeldet und nicht angefasst. Höchstens 500 Icons pro Aufruf.
Parameter
Die Icon-Referenzen, auf die du die Aktion anwendest, als collection/slug.
Das Icon-Set, in das du kopierst oder verschiebst. Mindestens 1.
Rückgabewert
{report: [{icon, state}]} mit state copied, exists oder no_markup. 404 easy_svg_pro_no_set, wenn set_id kein Icon-Set ist.
Antwort
{
"report": [
{
"icon": "arrow",
"state": "copied"
}
]
}