Shopware icon

Shopware

Shopware

Actions778

App Cms Block → Create App Cms Block

AI-generated

Overview

This node operation creates a new App CMS Block in the Shopware system. It is useful for automating the addition of content blocks to an app's CMS, allowing users to programmatically define and insert blocks with specific properties such as ID, name, block content, template, styles, label, and associated app ID. This can be applied in scenarios where dynamic content management is needed within an app's CMS, such as updating app interfaces or managing content layouts.

Use Case Examples

  1. Creating a new CMS block with custom styles and templates for a mobile app.
  2. Automating the insertion of content blocks during app deployment or updates.

Properties

Name Meaning
Response Specifies the data format for the response, either basic or detailed.
Id The unique identifier for the CMS block to be created.
Name The name of the CMS block.
Block The JSON content defining the block's structure and content.
Template The template string used for rendering the block.
Styles The styles string applied to the block.
Label The label for the CMS block.
App Id The identifier of the app to which the CMS block belongs.
Created At The creation timestamp of the CMS block.
Updated At The last update timestamp of the CMS block.
Translated JSON object containing translated content for the block.
App JSON object representing the app details associated with the CMS block.
Request Options Settings for request behavior such as batching, SSL handling, proxy, and timeout.

Output

JSON

  • id - The unique identifier of the created CMS block.
  • name - The name of the created CMS block.
  • block - The JSON content of the created CMS block.
  • template - The template string of the created CMS block.
  • styles - The styles string of the created CMS block.
  • label - The label of the created CMS block.
  • appId - The app identifier associated with the CMS block.
  • createdAt - Timestamp when the CMS block was created.
  • updatedAt - Timestamp when the CMS block was last updated.
  • translated - Translated content JSON of the CMS block.
  • app - App details JSON associated with the CMS block.

Dependencies

  • An API key credential for Shopware Admin API

Troubleshooting

  • Ensure all required fields (id, name, block, template, styles, label, appId) are provided to avoid validation errors.
  • If the API returns SSL certificate errors, check the 'Ignore SSL Issues' option or verify the SSL configuration.
  • Timeout errors can be resolved by increasing the timeout setting in Request Options.
  • Proxy settings must be correctly configured if a proxy is used to avoid connection failures.

Discussion