UpdateProductVariantsInput

Attributes available to update the product's variant(s)

This page contains

    Fields

    productId ID!

    Product id

    configuration [ProductVariantConfigurationInput!]!

    List of option, value that will be computed to correspond to one or more product variants. Example configuration:

    • [] -> to update all the variants for that product.
    • [{optionCode: 'Colour', valueCode: 'Blue'}] -> to update all "blue" variants.
    • [{optionCode: 'Colour', valueCode: 'Blue'}, {optionCode: 'Colour', valueCode: 'Green'}] -> to update the variants that are Blue or Green.
    • [{optionCode: 'Colour', valueCode: 'Blue'}, {optionCode: 'Size', valueCode: 'M'}] -> to update the variants of colour Blue and size M.
    physicalAttributes PhysicalAttributesInput

    Updated physical attributes

    Mutations for UpdateProductVariantsInput

    updateProductVariants

    Update the product's variant(s)