Anchor to productDuplicateAsyncV2product
productDuplicateAsyncV2
mutationDeprecated
Requires access scope. Also: The user must have a permission to duplicate a product.
Asynchronously duplicate a single product.
For API version 2024-10 and higher, use the mutation with the
synchronous: false
argument instead. Use instead.
Anchor to Arguments
Arguments
- Anchor to inputinput•Product
Duplicate requiredAsync Input! The params for duplicating the product.
Was this section helpful?
Anchor to ProductDuplicateAsyncV2Payload returnsProductDuplicateAsyncV2Payload returns
- Anchor to duplicatedProductIdduplicated•
Product Id The duplicated product ID.
- Anchor to productDuplicateJobIdproduct•
Duplicate Job Id The asynchronous job for duplicating the product.
- Anchor to userErrorsuser•
Errors [ProductDuplicate non-nullUser Error!]! The list of errors that occurred from executing the mutation.
Was this section helpful?
Mutation Reference
mutation productDuplicateAsyncV2($input: ProductDuplicateAsyncInput!) {
productDuplicateAsyncV2(input: $input) {
duplicatedProductId
productDuplicateJobId
userErrors {
field
message
}
}
}
Input
{
"input": {
"includeImages": true,
"includeTranslations": true,
"newStatus": "",
"newTitle": "<your-newTitle>",
"productId": "gid://shopify/<objectName>/10079785100"
}
}
{
"input": {
"includeImages": true,
"includeTranslations": true,
"newStatus": "",
"newTitle": "<your-newTitle>",
"productId": "gid://shopify/<objectName>/10079785100"
}
}
input ProductDuplicateAsyncInput {
includeImages: Boolean
includeTranslations: Boolean
newStatus: ProductStatus
newTitle: String!
productId: ID!
}