Shopware icon

Shopware

Shopware

Actions778

App Cms Block → Update App Cms Block

AI-generated

Overview

This node updates an existing App CMS Block in the Shopware system. It is useful for scenarios where you need to modify the content, style, or metadata of a CMS block within an app, such as updating the block's name, template, styles, or associated app information. For example, it can be used to programmatically update a CMS block's content or appearance based on user input or automated workflows.

Use Case Examples

  1. Updating the name and content of a CMS block to reflect new marketing information.
  2. Changing the styles of a CMS block to match a new design theme.
  3. Modifying the associated app data for a CMS block to link it with updated app modules or settings.

Properties

Name Meaning
Id Identifier for the app_cms_block, used to specify which CMS block to update.
Response Data format for the response; can be empty if no specific format is required.
Name The new name for the CMS block.
Block The JSON content of the CMS block to update.
Template The template string used for the CMS block.
Styles CSS or style information for the CMS block.
Label Label for the CMS block.
App Id Identifier of the app associated with the CMS block.
Created At Timestamp of when the CMS block was created.
Updated At Timestamp of when the CMS block was last updated.
Translated Translated content or metadata for the CMS block in JSON format.
App Detailed JSON object representing the app data associated with the CMS block, including modules, cookies, allowed hosts, integrations, and other nested app-related information.
Request Options Settings for request behavior such as batching, SSL certificate validation, proxy configuration, and timeout settings.

Output

JSON

  • id - The identifier of the updated App CMS Block.
  • name - The updated name of the CMS block.
  • block - The updated JSON content of the CMS block.
  • template - The updated template string of the CMS block.
  • styles - The updated styles or CSS of the CMS block.
  • label - The updated label of the CMS block.
  • appId - The app identifier associated with the CMS block.
  • createdAt - The creation timestamp of the CMS block.
  • updatedAt - The last updated timestamp of the CMS block.
  • translated - The translated content or metadata of the CMS block.
  • app - The detailed app JSON object associated with the CMS block.

Dependencies

  • An API key credential for Shopware Admin API

Troubleshooting

  • Ensure the 'Id' property is correctly set to the CMS block you want to update; otherwise, the update will fail or affect the wrong block.
  • Verify that the JSON fields such as 'block', 'translated', and 'app' are correctly formatted JSON strings to avoid parsing errors.
  • Check network and authentication settings if the request fails due to connectivity or authorization issues.
  • If SSL certificate validation errors occur, consider enabling the 'Ignore SSL Issues' option cautiously.

Discussion