commercetools icon

commercetools

Interact with the commercetools API. Operations are auto-generated from the official Postman collection.

Actions671

Category → Update Category by ID

AI-generated

Summary

Update a commercetools Category by its ID using specified version and a list of update actions.

Inputs

  • Category ID (required) — The unique identifier of the Category to update.
  • Version (required) — The current version number of the Category; used for optimistic concurrency control.
  • Actions (JSON) — A raw JSON array of update actions to apply to the Category; if provided and not empty, it overrides UI-defined actions.
  • Actions (UI) — One or more structured update actions selectable via the UI to modify the Category (e.g., ChangeName, AddAsset). Ignored if Actions (JSON) is not empty.

Output shape

a single record representing the updated Category JSON object

The operation returns the full updated Category resource as JSON. Errors are thrown if update fails or version/versioning conflict occurs.

Examples

Example 1: Update the name and slug of a Category by ID

Set Category ID and Version; choose ChangeName and ChangeSlug actions under Actions (UI) to specify new values.

Links

Discussion