productDuplicate mutation
Duplicates a product.
Required access
write_products
access scope.
On this page
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. |
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 executing the mutation.
Duplicates a product.
Required access
write_products
access scope.
On this page
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. |
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 executing the mutation.
Duplicates a product.
Required access
write_products
access scope.
On this page
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. |
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 executing the mutation.
Duplicates a product.
Required access
write_products
access scope.
On this page
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. |
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 executing the mutation.
Duplicates a product.
Required access
write_products
access scope.
On this page
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. |
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 executing the mutation.
Duplicates a product.
Required access
write_products
access scope.
On this page
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. |
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 executing the mutation.
Duplicates a product.
Required access
write_products
access scope.
On this page
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. |
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 executing the mutation.
Duplicates a product.
Required access
write_products
access scope.
On this page
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. |
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 executing the mutation.
Duplicates a product.
Required access
write_products
access scope.
On this page
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. |
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 executing the mutation.
Duplicates a product.
Required access
write_products
access scope.
On this page
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. |
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 executing the mutation.