easy-svg-pro/v1/sets/{id}/rename
Renames an icon set; its slug, and every call to it, stays.
REST endpoint · Easy SVG Pro · Status: Internal · Defined in includes/core/rest.php
Usage
POST /wp-json/easy-svg-pro/v1/sets/{id}/rename
Example
curl -u admin:app-password -H 'Content-Type: application/json' -d '{"label":"ACME Brand"}' https://example.com/wp-json/easy-svg-pro/v1/sets/42/rename
Description
Only the post title changes. The label is cleaned the same way as on create, and an empty result answers 400 easy_svg_pro_set_name. 404 easy_svg_pro_no_set when the id is not a set. Permission: Requires manage_options, an active licence and the editor feature (Icon set editor) switched on.
Permission: Requires manage_options, an active licence and the editor feature (Icon set editor) switched on.
Parameters
The icon set post id.
The new name.
Return value
id and the cleaned label.
Response
id and the cleaned label.
{
"id": 42,
"label": "ACME Brand"
}