Skip to main content

categoryMoveAbove

Reorder a category so it appears immediately before another category within the same parent.

Both categories must share the same parent. The full list of siblings after the move is returned so callers can update their UI in a single round trip.

Possible errors:

  • CATEGORY_NOT_FOUND: One of the supplied identifiers did not match any category.
  • CATEGORY_CROSS_ROOT_MOVE_ERROR: The two categories belong to different parents and cannot be reordered relative to each other.

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

categoryMoveAbove(
categoryUuid: String!
targetCategoryUuid: String!
): [Category!]!

Arguments

categoryMoveAbove.categoryUuid ● String! non-null scalar

Global identifier of the category to move.

categoryMoveAbove.targetCategoryUuid ● String! non-null scalar

Global identifier of the sibling category the moved category should appear immediately before.

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.