Skip to main content
Anchor to ProductOptionsCreateUserError

ProductOptionsCreateUserError

object

Requires read_products access scope.

Error codes for failed ProductOptionsCreate mutation.

•ProductOptionsCreateUserErrorCode

The error code.

•[String!]

The path to the input field that caused the error.

•String!non-null

The error message.


Was this section helpful?

•mutation

Creates options on a product.

Arguments

•[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.


Fields

•Product

The updated product object.

•[ProductOptionsCreateUserError!]!non-null

The list of errors that occurred from executing the mutation.


Was this section helpful?


Was this section helpful?