addProductVariantOption

Add a product variant option to 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 AddProductVariantOptionInput!

    AddProductVariantOptionInput fields

    productId ID!

    Id of the product to add the variant option to

    code StringInput

    Unique product variant option code

    name [LocalStringInput!]!

    The name of the product variant option

    inputType InputType!

    The input type of the product variant option

    Return Fields

    product Product PREVIEW

    Updated product

    userErrors [AddProductVariantOptionError!]

    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.