Shopware icon

Shopware

Shopware

Actions778

Main Category → Update Main Category

AI-generated

Overview

This node operation updates a Main Category in the Shopware system. It is useful for scenarios where you need to modify details of an existing main category, such as changing its associated product, category, sales channel, or timestamps. For example, you might update the category information to reflect new product versions or sales channels.

Use Case Examples

  1. Updating the main category's product details to a new version.
  2. Changing the sales channel associated with a main category.
  3. Modifying timestamps like createdAt or updatedAt for record keeping.

Properties

Name Meaning
Id Identifier for the main_category, required to specify which main category to update.
Response Data format for response; optional query parameter to specify response format.
Product Id Identifier for the product associated with the main category.
Product Version Id Version identifier for the product.
Category Id Identifier for the category associated with the main category.
Category Version Id Version identifier for the category.
Sales Channel Id Identifier for the sales channel associated with the main category.
Created At Timestamp for when the main category was created.
Updated At Timestamp for when the main category was last updated.
Product JSON object containing detailed product information related to the main category.
Category JSON object containing detailed category information related to the main category.
Sales Channel JSON object containing detailed sales channel information related to the main category.

Output

JSON

  • id - The unique identifier of the updated main category.
  • productId - The product identifier associated with the main category.
  • productVersionId - The version identifier of the product.
  • categoryId - The category identifier associated with the main category.
  • categoryVersionId - The version identifier of the category.
  • salesChannelId - The sales channel identifier associated with the main category.
  • createdAt - The creation timestamp of the main category.
  • updatedAt - The last update timestamp of the main category.
  • product - Detailed product information as a JSON object.
  • category - Detailed category information as a JSON object.
  • salesChannel - Detailed sales channel information as a JSON object.

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 that the JSON objects for Product, Category, and Sales Channel are correctly formatted to prevent parsing errors.
  • Verify API credentials and base URL configuration to avoid authentication or connection issues.

Discussion