productDuplicate mutation

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

includeImages ( Boolean )

Whether to duplicate images.
Default value: false

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-07 (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: false

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-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: false

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

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: false

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

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: false

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 (Unsupported)

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: false

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-04 (Unsupported)

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: false

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.