Preview

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

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

    AddProductVariantOptionInput fields

    productId ID!

    Id of the product to add the variant option to

    code String

    Unique product variant option code

    name [LocalStringInput!]!

    The name of the product variant option

    inputType InputType! PREVIEW

    The input type of the product variant option

    Return Fields

    product Product PREVIEW

    Updated product

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