Actions778
- Acl Role Actions
- App Actions
- App Action Button Actions
- App Administration Snippet Actions
- App Cms Block Actions
- App Flow Action Actions
- App Flow Event Actions
- App Payment Method Actions
- App Script Condition Actions
- App Shipping Method Actions
- App Template Actions
- Category Actions
- Cms Block Actions
- Cms Page Actions
- Cms Section Actions
- Cms Slot Actions
- Country Actions
- Country State Actions
- Currency Actions
- Currency Country Rounding Actions
- Custom Entity Actions
- Custom Field Actions
- Custom Field Set Actions
- Custom Field Set Relation Actions
- Customer Actions
- Customer Address Actions
- Customer Group Actions
- Customer Recovery Actions
- Customer Wishlist Actions
- Customer Wishlist Product Actions
- Delivery Time Actions
- Document Actions
- Document Base Config Actions
- Document Base Config Sales Channel Actions
- Document Type Actions
- Flow Actions
- Flow Sequence Actions
- Flow Template Actions
- Import Export File Actions
- Import Export Log Actions
- Import Export Profile Actions
- Integration Actions
- Landing Page Actions
- Language Actions
- Locale Actions
- Log Entry Actions
- Mail Header Footer Actions
- Mail Template Actions
- Mail Template Type Actions
- Main Category Actions
- Media Actions
- Media Default Folder Actions
- Media Folder Actions
- Media Folder Configuration Actions
- Media Thumbnail Actions
- Media Thumbnail Size Actions
- Newsletter Recipient Actions
- Notification Actions
- Number Range Actions
- Number Range Sales Channel Actions
- Number Range State Actions
- Number Range Type Actions
- Order Actions
- Order Customer Actions
- Order Delivery Actions
- Order Delivery Position Actions
- Order Line Item Actions
- Order Line Item Download Actions
- Order Transaction Actions
- Order Transaction Capture Actions
- Order Transaction Capture Refund Actions
- Order Transaction Capture Refund Position Actions
- Payment Method Actions
- Plugin Actions
- Product Actions
- Product Configurator Setting Actions
- Product Cross Selling Actions
- Product Cross Selling Assigned Products Actions
- Product Download Actions
- Product Export Actions
- Product Feature Set Actions
- Product Keyword Dictionary Actions
- Product Manufacturer Actions
- Product Media Actions
- Product Price Actions
- Product Review Actions
- Product Search Config Actions
- Product Search Config Field Actions
- Product Search Keyword Actions
- Product Sorting Actions
- Product Stream Actions
- Product Stream Filter Actions
- Product Visibility Actions
- Promotion Actions
- Promotion Discount Actions
- Promotion Discount Prices Actions
- Promotion Individual Code Actions
- Promotion Sales Channel Actions
- Promotion Setgroup Actions
- Property Group Actions
- Property Group Option Actions
- Rule Actions
- Rule Condition Actions
- Sales Channel Actions
- Sales Channel Analytics Actions
- Sales Channel Domain Actions
- Sales Channel Type Actions
- Salutation Actions
- Scheduled Task Actions
- State Machine Transition Actions
- System Config Actions
- Tag Actions
- Tax Actions
- Tax Provider Actions
- Tax Rule Actions
- Tax Rule Type Actions
- Theme Actions
- Unit Actions
- User Actions
- User Access Key Actions
- User Config Actions
- User Recovery Actions
- Webhook Actions
- Webhook Event Log Actions
- System Info Health Check Actions
- Bulk Operations Actions
- Document Management Actions
- Asset Management Actions
- Mail Operations Actions
- System Operations Actions
- Customer Impersonation Actions
- Order Management Actions
- Order Address Actions
- Authorization Authentication Actions
Cms Block → Update Cms Block
AI-generatedOverview
This node updates a CMS Block resource in the Shopware system. It is useful for scenarios where you need to modify existing CMS blocks, such as changing their position, type, appearance, or content structure. For example, you can update the block's name, background color, margins, visibility settings, and nested sections or slots to customize the layout and presentation of a CMS page.
Use Case Examples
- Updating the position and type of a CMS block to reorganize page layout.
- Changing the background color and media of a CMS block to match a new theme.
- Modifying the visibility settings of a CMS block to control its display on different sales channels.
Properties
| Name | Meaning |
|---|---|
| Id | Identifier for the cms_block, required to specify which block to update. |
| Response | Data format for response, used as a query parameter to specify response format. |
| Position | The position of the CMS block within its section. |
| Type | The type of the CMS block, defining its behavior or layout. |
| Locked | Boolean flag indicating if the CMS block is locked from editing. |
| Name | Name of the CMS block. |
| Section Position | Position of the section containing the CMS block. |
| Margin Top | Top margin CSS value for the CMS block. |
| Margin Bottom | Bottom margin CSS value for the CMS block. |
| Margin Left | Left margin CSS value for the CMS block. |
| Margin Right | Right margin CSS value for the CMS block. |
| Background Color | Background color CSS value for the CMS block. |
| Background Media Id | Identifier for the background media asset. |
| Background Media Mode | Mode setting for how background media is displayed. |
| Css Class | CSS class names applied to the CMS block. |
| Visibility | JSON object defining visibility rules for the CMS block. |
| Section Id | Identifier of the section the CMS block belongs to. |
| Custom Fields | JSON object for custom fields associated with the CMS block. |
| Version Id | Version identifier for the CMS block. |
| Cms Section Version Id | Version identifier for the CMS section containing the block. |
| Created At | Timestamp of when the CMS block was created. |
| Updated At | Timestamp of when the CMS block was last updated. |
| Section | JSON object representing the section structure containing the CMS block. |
| Background Media | JSON object representing the background media details. |
| Slots | JSON array representing the slots within the CMS block, which may contain nested blocks and content. |
Output
JSON
id- The unique identifier of the updated CMS block.position- The position of the CMS block within its section.type- The type of the CMS block.locked- Indicates if the CMS block is locked.name- The name of the CMS block.sectionPosition- Position of the section containing the CMS block.marginTop- Top margin CSS value.marginBottom- Bottom margin CSS value.marginLeft- Left margin CSS value.marginRight- Right margin CSS value.backgroundColor- Background color CSS value.backgroundMediaId- Identifier for the background media asset.backgroundMediaMode- Mode for displaying background media.cssClass- CSS class names applied to the block.visibility- Visibility rules as a JSON object.sectionId- Identifier of the section the block belongs to.customFields- Custom fields as a JSON object.versionId- Version identifier of the block.cmsSectionVersionId- Version identifier of the containing CMS section.createdAt- Creation timestamp.updatedAt- Last update timestamp.section- Section structure as a JSON object.backgroundMedia- Background media details as a JSON object.slots- Slots within the block as a JSON array.
Troubleshooting
- Ensure the 'Id' property is provided and correctly identifies an existing CMS block to update.
- Verify that required properties like 'Position', 'Type', and 'Section Id' are set to valid values.
- If using JSON properties like 'Visibility', 'Custom Fields', 'Section', 'Background Media', or 'Slots', ensure the JSON is well-formed and correctly parsed.
- Check API credentials and endpoint URL configuration to avoid authentication or connection errors.