Anchor to section titled 'undefined'

productDuplicate
mutation

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

Duplicates a product.

If you need to duplicate a large product, such as one that has many variants that are active at several locations, you might encounter timeout errors.

To avoid these timeout errors, you can instead duplicate the product asynchronously.

In API version 2024-10 and higher, include synchronous: false argument in this mutation to perform the duplication asynchronously.

In API version 2024-07 and lower, use the asynchronous ProductDuplicateAsyncV2.


Anchor to includeImages
includeImages
default:false

Specifies whether or not to duplicate images.

Anchor to includeTranslations
includeTranslations
default:false

Specifies whether or not to duplicate translations.

The new status of the product. If no value is provided the status will be inherited from the original product.

The new title of the product.

Anchor to productId
productId
required

The ID of the product to be duplicated.


Was this section helpful?

The asynchronous job that duplicates the product images.

The duplicated product.

The user's shop.

The list of errors that occurred from executing the mutation.


Was this section helpful?