Skip to main content

categoryUpdate

Apply a partial update to a category.

Only the fields supplied in the input are modified; omitted fields are left untouched. The catalogue's default language must remain present in the localized name list after the update.

Possible errors:

  • CATEGORY_NOT_FOUND: The supplied identifier did not match any category.
  • PARENT_CATEGORY_NOT_FOUND: The supplied parent reference did not match any category.
  • CATEGORY_CROSS_ROOT_MOVE_ERROR: A category cannot be moved across catalogue roots.
  • CATEGORY_NOT_ALLOWED: The update violates a catalogue business rule.
  • SCHEMA_VALIDATION: One or more input fields failed validation.

AUTH: Role=[product.OWNER,product.EDITOR]

categoryUpdate(
categoryId: Float!
input: UpdateCategoryInput!
): Category!

Arguments​

categoryUpdate.categoryId ● Float! non-null scalar​

Numeric identifier of the category to update.

Must be a valid category identifier that exists in the catalogue.

categoryUpdate.input ● UpdateCategoryInput! non-null input​

Fields to update on the category.

Omitted fields keep their current value.

Type​

Category object​

Category entity representing product classification and organization.

External entity from the catalog service that provides category identification and hierarchy information. Used as a reference for category-specific attributes and organizational relationships within the attribute system.