productDuplicate mutation

Version unstable

Duplicates a product.

Required access

write_products access scope.

Interactive example

This is an example mutation query. Use the embedded interactive tool below to edit the query.

Hint: use Ctrl + Space for autocompleting fields.


Arguments

Argument Description
includeImages ( Boolean )

Specifies whether or not to duplicate images.
Default value: false

newStatus ( ProductStatus )

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

newTitle ( String! ) required

The new title of the product.

productId ( ID! ) required

The ID of the product to be duplicated.

Return fields

  • imageJob (Job)

    The asynchronous job duplicating the product images.

  • newProduct (Product)

    The duplicated product.

  • shop (Shop!)

    The user's shop.

  • userErrors ([UserError!]!)

    List of errors that occurred from executing the mutation.

Version 2021-10 (Release candidate)

Duplicates a product.

Required access

write_products access scope.

Interactive example

This is an example mutation query. Use the embedded interactive tool below to edit the query.

Hint: use Ctrl + Space for autocompleting fields.


Arguments

Argument Description
includeImages ( Boolean )

Specifies whether or not to duplicate images.
Default value: false

newStatus ( ProductStatus )

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

newTitle ( String! ) required