Shopware icon

Shopware

Shopware

Actions778

Main Category → Create Main Category

AI-generated

Overview

This node operation allows users to create a Main Category in the Shopware system. It is useful for managing product categorization within a sales channel, enabling structured organization of products for e-commerce platforms. For example, a user can create a new main category by specifying details such as category ID, product ID, sales channel ID, and optionally include detailed product, category, and sales channel JSON data.

Use Case Examples

  1. Creating a new main category for a product in a specific sales channel to organize products effectively.
  2. Adding a main category with detailed product and category information for advanced catalog management.

Properties

Name Meaning
Response Specifies the data format for the response, either basic or detailed.
Id The unique identifier for the main category to be created.
Product Id The identifier of the product associated with the main category.
Product Version Id Optional version identifier for the product.
Category Id The identifier of the category to be set as the main category.
Category Version Id Optional version identifier for the category.
Sales Channel Id The identifier of the sales channel where the main category is applicable.
Created At Optional timestamp indicating when the main category was created.
Updated At Optional timestamp indicating when the main category was last updated.
Product Optional detailed JSON object representing the product data associated with the main category.
Category Optional detailed JSON object representing the category data associated with the main category.
Sales Channel Optional detailed JSON object representing the sales channel data associated with the main category.
Request Options Node settings for request handling such as batching, SSL issues, proxy, and timeout.

Output

JSON

  • id - The unique identifier of the created main category.
  • productId - The product identifier associated with the main category.
  • productVersionId - The version identifier of the product, if provided.
  • categoryId - The category identifier set as the main category.
  • categoryVersionId - The version identifier of the category, if provided.
  • salesChannelId - The sales channel identifier where the main category applies.
  • createdAt - Timestamp when the main category was created.
  • updatedAt - Timestamp when the main category was last updated.
  • product - Detailed JSON object of the product data associated with the main category.
  • category - Detailed JSON object of the category data associated with the main category.
  • salesChannel - Detailed JSON object of the sales channel data associated with the main category.

Dependencies

  • An API key credential for Shopware Admin API

Troubleshooting

  • Ensure all required fields (Id, Product Id, Category Id, Sales Channel Id) are provided to avoid validation errors.
  • Check the format of JSON inputs for Product, Category, and Sales Channel to prevent parsing errors.
  • If SSL issues occur, consider enabling the 'Ignore SSL Issues' option or verify the SSL certificate.
  • Timeout errors can be resolved by increasing the timeout setting in Request Options.

Discussion