Blocks/Menu Management Added to Commerce API!
We continue to expand the capabilities of Commerce API. Now, in addition to products, categories, orders, blog articles, and pages, you have full control over managing blocks and menus on your site.
A new section — Blocks/Menu — has been added to Commerce API. You can now programmatically create, edit, and delete blocks and menus via the API.
New API methods for working with blocks and menus:
POST /blocks— Bulk add and update blocks/menusGET /blocks— Get list of blocks with pagination, sorting, and filteringGET /blocks/{id}— View a single block by IDGET /blocks/slug/{slug}— Get a block by system name (slug)PUT/PATCH /blocks/{id}— Update an existing blockPUT/PATCH /blocks— Bulk update blocksDELETE /blocks/{id}— Delete a block by ID
Position and visibility management
The API allows you to manage block position (header, footer, left, right, top, etc.), sort order, visibility for different user groups and devices, and configure display on specific pages of the site.
All details, request structure, and usage examples have been added to the documentation.
View the guide: https://boostore.pro/en/docs/api-integration/#api-blocks
