Skip to main content

ProductVariantSetDefault

Set default variant for a product. Mutation triggers PRODUCT_UPDATED webhook.

Requires MANAGE_PRODUCTSpermission.
type ProductVariantSetDefault {
product: Product
productErrors: [ProductError!]! @deprecated
errors: [ProductError!]!
}

Fields

ProductVariantSetDefault.product ● Product object products

ProductVariantSetDefault.productErrors ● [ProductError!]! deprecated non-null object products

DEPRECATED

This field will be removed in Saleor 4.0. Use errors field instead.

ProductVariantSetDefault.errors ● [ProductError!]! non-null object products

Returned By

productVariantSetDefault mutation