• Product
  • >
  • Mutations
  • >
  • updateProductDefaultVariant

Preview

updateProductDefaultVariant is in Preview status and is subject to change without notice. For more information about Preview status, see the GraphQL API policy.

updateProductDefaultVariant

Update a product's default variant

This page contains

Authorization Rules

This request requires authorization with at least one of the following scopes:

Scopes

ROLE_CHANNEL_ADMIN

ROLE_DEVELOPER

ROLE_PARTNER

Arguments

input UpdateProductDefaultVariantInput! PREVIEW

UpdateProductDefaultVariantInput fields

productId ID!

The product's Id

physicalAttributes PhysicalAttributesInput PREVIEW

ProductVariant's physical attributes

Return Fields

product Product PREVIEW

Updated product

userErrors [UpdateProductDefaultVariantError!] PREVIEW

User Errors

Interactive example

This is an example mutation query. Use the embedded interactive tool below to edit the query.

Hint: use Ctrl + Space for autocompleting fields.