Table of Contents
The plugin registers its routes in the visual-portfolio/v1 namespace, so a full path reads /wp-json/visual-portfolio/v1/get_layouts/. Most routes serve the block editor and require a logged-in user with the capability named below.
Routes
| Route | Method | Permission | Purpose |
|---|---|---|---|
/get_layouts/ | GET | edit posts | Saved Layouts, as id, title and edit_url |
/update_layout/ | POST | edit the layout | Save the options of a Saved Layout |
/get_filter_items/ | POST | edit content | Filter terms for the editor |
/get_max_pages/ | GET, POST | edit posts | Page count of a query |
/update_gallery_items_count_notice_state/ | POST | manage options | Dismiss the large-gallery notice |
Pro routes
| Route | Method | Permission | Purpose |
|---|---|---|---|
/album-images/post/{id} and /album-images/term/{id} with a taxonomy parameter | GET | public | Album images beyond the lazy-load threshold, 1 to 100 per page |
vpf/v1/proofing/{id}/selections | GET, POST | public, with a page nonce | Proofing selections. POST is limited to 10 per minute per visitor |
Responses
A successful call returns success: true together with a response field. A failed one returns error: true, an error_code and a response, with HTTP status 401.