Skip to main content
Anchor to productOptionsCreate

productOptionsCreate

mutation

Requires write_products access scope. Also: The user must have a permission to create product variants.

Creates options on a product.

•[OptionCreateInput!]!required

Options to add to the product.

•ID!required

The ID of the product to update.

•ProductOptionCreateVariantStrategyDefault:LEAVE_AS_IS

The strategy defines which behavior the mutation should observe regarding variants. If not provided or set to null, the strategy LEAVE_AS_IS will be used.


Was this section helpful?

Anchor to ProductOptionsCreatePayload returnsProductOptionsCreatePayload returns

•Product

The updated product object.

•[ProductOptionsCreateUserError!]!non-null

The list of errors that occurred from executing the mutation.


Was this section helpful?
OSZAR »