Skip to main content
Anchor to ProductOptionUpdateUserError

ProductOptionUpdateUserError

object

Requires read_products access scope.

Error codes for failed ProductOptionUpdate mutation.

•ProductOptionUpdateUserErrorCode

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

Updates a product option.

Arguments

•OptionUpdateInput!required

Option to update.

•[OptionValueCreateInput!]

New option values to create.

Anchor to optionValuesToDeleteoptionValuesToDelete
•[ID!]

IDs of the existing option values to delete.

Anchor to optionValuesToUpdateoptionValuesToUpdate
•[OptionValueUpdateInput!]

Existing option values to update.

•ID!required

The ID of the Product the Option belongs to.

•ProductOptionUpdateVariantStrategy

The strategy defines which behavior the mutation should observe regarding variants, such as creating variants or deleting them in response to option values to add or to delete. If not provided or set to null, the strategy LEAVE_AS_IS will be used.


Fields

•Product

The product with which the option being updated is associated.

•[ProductOptionUpdateUserError!]!non-null

The list of errors that occurred from executing the mutation.


Was this section helpful?


Was this section helpful?