productDuplicate

Version 2019-04

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

includeImages ( Boolean )

Whether to duplicate images.
Default value: true

newTitle ( String! ) required

New title of the product.

productId ( ID! ) required

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 executing the mutation.

Version 2019-07

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

includeImages ( Boolean )

Whether to duplicate images.
Default value: true

newTitle ( String! ) required

New title of the product.

productId ( ID! ) required

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 executing the mutation.

Version 2019-10 (Latest)

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

includeImages ( Boolean )

Whether to duplicate images.
Default value: true

newTitle ( String! ) required

New title of the product.

productId ( ID! ) required

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 executing the mutation.

Version 2020-01 (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

includeImages ( Boolean )

Whether to duplicate images.
Default value: true

newTitle ( String! ) required

New title of the product.

productId ( ID! ) required

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 executing the mutation.

Sign up for a Partner account to get started.

Sign up