Skip to main content

productVariantUpdate

Updates an existing variant for product.

Requires MANAGE_PRODUCTSpermission.
productVariantUpdate(
externalReference: String
id: ID
input: ProductVariantInput!
sku: String
): ProductVariantUpdate

Arguments

productVariantUpdate.externalReference ● String scalar miscellaneous

External ID of a product variant to update.

Added in Saleor 3.10

productVariantUpdate.id ● ID scalar miscellaneous

ID of a product to update.

productVariantUpdate.input ● ProductVariantInput! non-null input products

Fields required to update a product variant.

productVariantUpdate.sku ● String scalar miscellaneous

SKU of a product variant to update.

Added in Saleor 3.8

Type

ProductVariantUpdate object products

Updates an existing variant for product.

Requires MANAGE_PRODUCTSpermission.