PUT /V1/cmsBlock/:id
PUT /V1/cmsBlock/:id is a Magento 2 REST endpoint in the Cms module. Save block. Requires an admin Bearer token with ACL Magento_Cms::block.
Last verified: against Magento 2.4.9.
Returns
Magento\Cms\Api\Data\BlockInterface
Service contract
Magento\Cms\Api\BlockRepositoryInterface::save
Authorization
Admin Bearer token with ACL:
- Magento_Cms::block
Body parameters
Example request
Auto-generated from the service contract — paste-ready against your store's /rest/default base. Replace the host, store code, ACL token, and any required values before running.
Headers
Path
/V1/cmsBlock/:idBody
{
"block": {
"active": false,
"content": "",
"creation_time": "",
"id": 0,
"identifier": "",
"title": "",
"update_time": ""
}
}Related in Cms
Other endpoints shipped by the same module.
/V1/cmsBlock
Save block.
Cms · Magento\Cms\Api\BlockRepositoryInterface::save
/V1/cmsBlock/:blockId
Delete block by ID.
Cms · Magento\Cms\Api\BlockRepositoryInterface::deleteById
/V1/cmsBlock/:blockId
Retrieve block.
Cms · Magento\Cms\Api\BlockRepositoryInterface::getById
/V1/cmsBlock/search
Retrieve blocks matching the specified criteria.
Cms · Magento\Cms\Api\BlockRepositoryInterface::getList
/V1/cmsPage
Save page.
Cms · Magento\Cms\Api\PageRepositoryInterface::save
/V1/cmsPage/:id
Save page.
Cms · Magento\Cms\Api\PageRepositoryInterface::save
Every Magento dev tool, in one hosted workspace.
Free to sign up. Nothing to install. Drafts, audits, and projects saved across every tool.