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!

    UpdateProductDefaultVariantInput fields

    productId ID!

    The product's Id

    physicalAttributes PhysicalAttributesInput

    ProductVariant's physical attributes

    Return Fields

    product Product PREVIEW

    Updated product

    userErrors [UpdateProductDefaultVariantError!]

    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.