Skip to main content

categoryRemoveProductsClusters

Detach products and clusters from a category in a single operation.

Each item can be referenced by internal identifier or by external source / source identifier pair. Items cannot be detached from the category that was assigned as their original category.

Possible errors:

  • CATEGORY_NOT_FOUND: The supplied category identifier did not match any category.
  • CATEGORY_ITEM_NOT_IN_CATEGORY: One of the referenced products or clusters is not currently attached to the category.
  • CATEGORY_ORIGINAL_CATEGORY_PROTECTION: An item cannot be removed from the category that was assigned as its original category.
  • CATEGORY_REMOVE_PRODUCTS_CLUSTERS_FAILED: The bulk detachment could not be applied.
  • CATEGORY_OPERATION_INVALID: The combination of inputs violates a catalogue business rule.

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

categoryRemoveProductsClusters(
id: Int!
input: CategoryRemoveProductsClustersInput!
): CategoryRemoveProductsClustersResponse!

Arguments

categoryRemoveProductsClusters.id ● Int! non-null scalar

Numeric identifier of the category to detach items from.

categoryRemoveProductsClusters.input ● CategoryRemoveProductsClustersInput! non-null input

Lists of products and clusters to detach from the category, referenced by identifier or by external source.

Type

CategoryRemoveProductsClustersResponse object

Response for removing products and clusters from a category