Shopware icon

Shopware

Read, update, write and delete data from Shopware

Category → Update

AI-generated

Summary

Update an existing Shopware category by specifying its ID and the fields to modify, such as name, description, active status, and parent category.

Inputs

  • Category ID (required) — The ID of the category to update. Locate this ID in the URL when viewing the category in Shopware Admin, e.g., https://your-domain.com/admin#/sw/category/detail/.
  • Update Fields — Fields to update on the category. Options include 'Active' (boolean to set visibility in storefront), 'Description' (string), 'Name' (string), and 'Parent' (select a parent category from Shopware categories).

Output shape

a single updated category record as returned by Shopware API

The output contains the updated category data reflecting the applied changes. Ensure the Category ID is correct to successfully update the desired category.

Examples

Example 1: Update the name and activate a category

Provide the existing Category ID, set 'Name' to the new desired name, and set 'Active' to true in 'Update Fields'.

Discussion