Docs
Dashboard

ProductVariantsUpdateInput

Input

Represents the input for creating a new product variant.

#

Fields


attributeValues
[ProductVariantAttributeValueInput!]

List of attribute values applied to the product variant.

barcode
String

The barcode of the product variant.

id
ID!

The unique identifier of the product variant to be updated.

metadata
[KeyValuePairOfStringAndStringInput!]

Metadata associated with the product variant.

metafields
[MetafieldInput!]

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

name
String

The name of the product variant.

sku
String

The stock keeping unit (SKU) of the product variant.

status
VariantStatus

The status of the product variant.

Possible enum values
  • ACTIVE

    The variant is available through published catalog experiences.

  • DRAFT

    The variant is retained as a draft and is not published.

weight
ProductVariantWeightInput

Specifies the weight of a variant