Skip to main content

categoryUpdate

Update an existing product category.

Updates the specified category with new information while preserving unchanged fields. Supports partial updates for flexible category management and content maintenance.

Possible errors:

  • UPDATE_CATEGORY_ERROR: Failed to update category due to validation or system errors
  • CATEGORY_NOT_FOUND_ERROR: Category with the specified ID does not exist
  • UNAUTHENTICATED: Invalid or missing authentication
  • FORBIDDEN: Insufficient permissions to modify categories

AUTH: Role=[product.OWNER,product.EDITOR] OR ('user is authenticated')

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

Arguments

categoryUpdate.categoryId ● Float! non-null scalar

Unique identifier of the category to update.

Must be a positive integer representing a valid category ID in the system.

categoryUpdate.input ● UpdateCategoryInput! non-null input

Category update data.

Partial category information to update. Only provided fields will be modified. All fields are optional, enabling selective updates.

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.