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
1mutation productDuplicateAsyncV2($input: ProductDuplicateAsyncInput!) {2 productDuplicateAsyncV2(input: $input) {3 duplicatedProductId4 productDuplicateJobId5 userErrors {6 field7 message8 }9 }10}
Input
1{2 "input": {3 "includeImages": true,4 "newStatus": "",5 "newTitle": "<your-newTitle>",6 "productId": "gid://shopify/<objectName>/10079785100"7 }8}
{
"input": {
"includeImages": true,
"newStatus": "",
"newTitle": "<your-newTitle>",
"productId": "gid://shopify/<objectName>/10079785100"
}
}
input ProductDuplicateAsyncInput {
includeImages: Boolean
newStatus: ProductStatus
newTitle: String!
productId: ID!
}