Preview

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

updateProductVariantsByIds

Update the product's variant(s) by id(s)

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 UpdateProductVariantByIdsInput! PREVIEW

    UpdateProductVariantByIdsInput fields

    productId ID!

    Product id

    ids [ID!]!

    Product's variant(s) id(s)

    isEnabled Boolean

    To enable or disable the product variant(s)

    physicalAttributes PhysicalAttributesInput PREVIEW

    Updated physical attributes

    Return Fields

    variantIds [ID!]!

    Ids of the updated variants

    userErrors [UpdateProductVariantsErrors!] PREVIEW

    Errors that occurred when update variants

    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.