Preview

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

removeProductVariantOption

Remove a product variant option from a product

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

    RemoveProductVariantOptionInput fields

    productId ID!

    Id of the product to remove the variant option from

    code String!

    The code of the variant option to remove

    Return Fields

    product Product PREVIEW

    The updated product

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