Preview

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

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

    UpdateProductVariantOptionInput fields

    productId ID!

    The product's Id

    code String!

    The code of the option

    name [LocalStringInput!]

    List of all the localized name of the product variant option

    inputType InputType PREVIEW

    The input type of the option

    Return Fields

    product Product PREVIEW

    Updated product

    userErrors [UpdateProductVariantOptionError!] 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.