ProductUpdateInput
InputThe input type for updating an existing product.
Fields
- [ID!]
categories The ids of the categories the product belongs to, if you add a product to a sub-category, it will automatically be added to all ancestor categories.
- [ID!]
collections The product’s collections.
- String
description An optional new description.
- ID!
id The primary key of the product.
- [KeyValuePairOfStringAndStringInput!]
metadata Optional key/value metadata for the product.
- [MetafieldInput!]
metafields The metafield values to add or update on the product. Existing metafields not included in the list are preserved. When explicitly specified as null, all assigned product metafields are removed.
- String
name The new name of the product.
- String
slug The new URL-friendly identifier for the product.
- ProductStatus
status The new status of the product.
Possible enum valuesACTIVEThe product is available through published catalog experiences.
DRAFTThe product is retained as a draft and is not published.
- [String!]
An optional list of tags.
- String
vendor An optional new vendor name.