Preview

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

updateProductVariantOptionValue

Update a product variant option value

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

    UpdateProductVariantOptionValueInput fields

    productId ID!

    Product id

    optionCode String!

    Option code for the related variant option

    valueCode String!

    User defined code for the variant option's value (e.g. 'S' for size small)

    name [LocalStringInput!]

    Localized name of the variant option's value (e.g. EN: Small + FR: Petit)

    hexcode StringInput

    If the value is a color, defines its hexcode (e.g. E67E22) else null

    isDefaultValue Boolean

    Indicates if product variant option value is the default value

    secondaryInformation [LocalStringInput!]

    Additional information about a product variant option value

    Return Fields

    product Product PREVIEW

    Updated product

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