easy-svg/v1/settings
Reads or saves the feature switches and the size limit shown under Icons → Einstellungen.
REST endpoint · Easy SVG · Status: Internal · Defined in includes/panel.php
Usage
GET /wp-json/easy-svg/v1/settings | POST /wp-json/easy-svg/v1/settings
Example
curl -X POST https://example.com/wp-json/easy-svg/v1/settings \
-H 'Content-Type: application/json' \
-H 'X-WP-Nonce: <nonce>' \
-d '{"icons":true}'
Description
GET returns easy_svg_settings(). POST merges the JSON body onto what is stored, runs it through easy_svg_sanitize_settings() and returns the saved settings, so a key you leave out keeps its value and an explicit false switches off. max_mb has no schema maximum; a number above easy_svg_max_mb_ceiling is clamped, not refused. Changes take effect on the next request, because the hooks are wired when the plugin loads.
Permission: manage_options (easy_svg_panel_rest_permission)
Parameters
Whether SVG uploads are allowed. POST only.
Whether the icon library and Icon block collection are registered. POST only.
Largest SVG the sanitizer parses, in MB, minimum 1, clamped to the ceiling. POST only.
Response
The settings object: svg_upload, icons, max_mb.
{
"svg_upload": true,
"icons": true,
"max_mb": 2
}