Docs
Dashboard

CategoryUpdateInput

Input

Input fields accepted for category update input.

#

Fields


id
ID!

The id of the category to update

metafields
[MetafieldInput!]

The metafield values to add or update on the category. Existing metafields not included in the list are preserved. When explicitly specified as null, all assigned category metafields are removed.

name
String

The name of the category

productsToAdd
[ID!]

The IDs of products to add to the category. Products also listed in ProductsToDelete are deleted.

productsToDelete
[ID!]

The IDs of products to remove from the category and all of its descendants.

slug
String

The slug of the category