Shopware icon

Shopware

Shopware

Actions778

Cms Slot → Create Cms Slot

AI-generated

Overview

This node operation creates a CMS Slot in the Shopware system. It is useful for users who want to programmatically add new content slots to their CMS blocks, enabling dynamic content management and customization within their Shopware storefronts. For example, a user can create a new slot with specific configurations, data, and custom fields to display unique content on their website.

Use Case Examples

  1. Creating a new CMS Slot with a specific type and slot name to add custom content to a page section.
  2. Adding a locked CMS Slot with detailed configuration and custom fields for advanced content control.

Properties

Name Meaning
Response Data format for the response, either basic or detailed.
Id Unique identifier for the CMS Slot.
Version Id Version identifier for the CMS Slot.
Type Type of the CMS Slot.
Slot Name of the slot.
Locked Indicates if the slot is locked.
Config JSON configuration for the slot.
Custom Fields Custom fields in JSON format for the slot.
Data Data in JSON format associated with the slot.
Block Id Identifier of the block to which the slot belongs.
Field Config Field configuration in JSON format.
Cms Block Version Id Version identifier for the CMS block.
Created At Creation timestamp of the slot.
Updated At Update timestamp of the slot.
Translated Translated content in JSON format.
Block Block data in JSON format, representing the structure and related entities of the CMS block.

Output

JSON

  • id - Unique identifier of the created CMS Slot.
  • type - Type of the created CMS Slot.
  • slot - Name of the created slot.
  • locked - Lock status of the created slot.
  • config - Configuration details of the created slot.
  • customFields - Custom fields associated with the created slot.
  • data - Data associated with the created slot.
  • blockId - Identifier of the block to which the slot belongs.
  • fieldConfig - Field configuration of the created slot.
  • cmsBlockVersionId - Version identifier of the CMS block.
  • createdAt - Creation timestamp of the slot.
  • updatedAt - Update timestamp of the slot.
  • translated - Translated content of the slot.
  • block - Block data representing the CMS block structure and related entities.

Dependencies

  • An API key credential for Shopware Admin API

Troubleshooting

  • Ensure all required fields (Id, Type, Slot, Block Id) are provided to avoid validation errors.
  • Check the JSON format for fields like Config, Custom Fields, Data, Field Config, Translated, and Block to prevent parsing errors.
  • Verify API credentials and base URL configuration to avoid authentication or connection issues.

Discussion