Preview

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

removeProductVariantOptionValue

Delete/remove a variant option's 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 RemoveProductVariantOptionValueInput! PREVIEW

    RemoveProductVariantOptionValueInput fields

    productId ID!

    Id of the product to remove the variant option from

    optionCode String!

    The code of the variant option

    valueCode String!

    The code of the variant option value to remove

    Return Fields

    product Product PREVIEW

    The updated product

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