easy-svg-pro/v1/sets/order
Saves the order in which the icon sets are listed, first to last.
REST endpoint, Easy SVG Pro, Status: Public, defined in includes/core/rest/library.php
Usage
POST /wp-json/easy-svg-pro/v1/sets/order
Example
curl -u admin:app-password -H 'Content-Type: application/json' -d '{"ids":[57,42,63]}' https://example.com/wp-json/easy-svg-pro/v1/sets/order
Description
The Icons panel sends this when a set is dragged to a new place. The order is stored in the option easy_svg_pro_set_order and followed by library/index, library/collections and sets/list. Only published sets count: unknown ids, ids of other posts and repeated ids are dropped. A stored set that was not sent keeps its place right after the set it followed before, so a partial list does not lose sets. An empty ids clears the saved order and the sets fall back to title order. Once an order is saved, a set made with sets/create is added at its end.
Permission: manage_options, an active license, the icon library of the free plugin switched on and the Collections feature (sets) switched on under Settings, Features. WordPress checks the required arguments before the permission callback, so a request without them answers 400, even from a guest.
Parameters
Every set, first to last, as post ids. At most 1000. An empty list clears the order.
Return value
ids, the order as stored.
Response
{
"ids": [57, 42, 63]
}