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 → Create Cms Block
AI-generatedOverview
This node operation creates a CMS Block in the Shopware system. It is useful for users who want to programmatically add new content blocks to their CMS pages, allowing for dynamic content management and customization. For example, a user can create a new CMS Block with specific positioning, type, and styling attributes to be displayed on a website.
Use Case Examples
- Creating a new CMS Block with a unique ID, position, and type to add custom content to a webpage.
- Setting margins, background color, and media for a CMS Block to match the website's design.
- Defining visibility and custom fields for a CMS Block to control when and how it appears to users.
Properties
| Name | Meaning |
|---|---|
| Response | Data format for the response, either basic or detailed. |
| Id | Unique identifier for the CMS Block. |
| Position | Position of the CMS Block within the section. |
| Type | Type of the CMS Block. |
| Locked | Indicates if the CMS Block is locked. |
| Name | Name of the CMS Block. |
| Section Position | Position of the CMS Block within the section. |
| Margin Top | Top margin of the CMS Block. |
| Margin Bottom | Bottom margin of the CMS Block. |
| Margin Left | Left margin of the CMS Block. |
| Margin Right | Right margin of the CMS Block. |
| Background Color | Background color of the CMS Block. |
| Background Media Id | ID of the background media for the CMS Block. |
| Background Media Mode | Mode of the background media. |
| Css Class | CSS class applied to the CMS Block. |
| Visibility | Visibility settings for the CMS Block. |
| Section Id | Identifier of the section to which the CMS Block belongs. |
| Custom Fields | Custom fields for additional data in the CMS Block. |
| Version Id | Version identifier for the CMS Block. |
| Cms Section Version Id | Version identifier for the CMS section. |
| Created At | Creation timestamp of the CMS Block. |
| Updated At | Last update timestamp of the CMS Block. |
| Section | JSON object representing the section details of the CMS Block. |
| Background Media | JSON object representing the background media details of the CMS Block. |
| Slots | JSON array representing the slots within the CMS Block. |
Output
JSON
id- Unique identifier of the created CMS Block.position- Position of the CMS Block within the section.type- Type of the CMS Block.locked- Indicates if the CMS Block is locked.name- Name of the CMS Block.sectionPosition- Position of the CMS Block within the section.marginTop- Top margin of the CMS Block.marginBottom- Bottom margin of the CMS Block.marginLeft- Left margin of the CMS Block.marginRight- Right margin of the CMS Block.backgroundColor- Background color of the CMS Block.backgroundMediaId- ID of the background media for the CMS Block.backgroundMediaMode- Mode of the background media.cssClass- CSS class applied to the CMS Block.visibility- Visibility settings for the CMS Block.sectionId- Identifier of the section to which the CMS Block belongs.customFields- Custom fields for additional data in the CMS Block.versionId- Version identifier for the CMS Block.cmsSectionVersionId- Version identifier for the CMS section.createdAt- Creation timestamp of the CMS Block.updatedAt- Last update timestamp of the CMS Block.section- JSON object representing the section details of the CMS Block.backgroundMedia- JSON object representing the background media details of the CMS Block.slots- JSON array representing the slots within the CMS Block.
Dependencies
- An API key credential for Shopware Admin API
Troubleshooting
- Ensure all required fields (Id, Position, Type, Section Id) are provided to avoid validation errors.
- Check the API credentials and base URL configuration if authentication errors occur.
- If the response format is not as expected, verify the '_response' property setting (basic or detail).
- For JSON properties like 'visibility', 'customFields', 'section', 'backgroundMedia', and 'slots', ensure valid JSON format to prevent parsing errors.