Skip to main content
Anchor to productOptionsDelete

productOptionsDelete

mutation

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

Deletes the specified options.

•[ID!]!required

IDs of the options to delete from the product.

•ID!required

ID of the product from which to delete the options.

•ProductOptionDeleteStrategyDefault:DEFAULT

The strategy defines which behavior the mutation should observe,such as how to handle a situation where deleting an option would result in duplicate variants.


Was this section helpful?

Anchor to ProductOptionsDeletePayload returnsProductOptionsDeletePayload returns

•[ID!]

IDs of the options deleted.

•Product

The updated product object.

•[ProductOptionsDeleteUserError!]!non-null

The list of errors that occurred from executing the mutation.


Was this section helpful?
OSZAR »