updateProductVariantOption

Update a product's variant option

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 UpdateProductVariantOptionInput!

    UpdateProductVariantOptionInput fields

    productId ID!

    The product's Id

    code StringInput!

    The code of the option

    name [LocalStringInput!]

    List of all the localized name of the product variant option

    inputType InputType

    The input type of the option

    Return Fields

    product Product PREVIEW

    Updated product

    userErrors [UpdateProductVariantOptionError!]

    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.