Skip to main content
Log inSign up
mutation

Requires write_products access scope. Also: The user must have a permission to edit products and manage product variants.

Updates a product option.

•

Option to update.

•

New option values to create.

Anchor to optionValuesToDeleteoptionValuesToDelete
•

IDs of the existing option values to delete.

Anchor to optionValuesToUpdateoptionValuesToUpdate
•

Existing option values to update.

•
ID!required

The ID of the Product the Option belongs to.

•

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.


Was this section helpful?

Anchor to ProductOptionUpdatePayload returnsProductOptionUpdatePayload returns

•

The product with which the option being updated is associated.

•

The list of errors that occurred from executing the mutation.


Was this section helpful?