Anchor to section titled 'undefined'

productDuplicateAsyncV2
mutation
deprecated

Requires write_products 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 productDuplicate mutation with the synchronous: false argument instead. Use productDuplicate instead.


The params for duplicating the product.


Was this section helpful?

The duplicated product ID.

The asynchronous job for duplicating the product.

The list of errors that occurred from executing the mutation.


Was this section helpful?
Hide code
Mutation reference
Copy
mutation productDuplicateAsyncV2($input: ProductDuplicateAsyncInput!) {
  productDuplicateAsyncV2(input: $input) {
    duplicatedProductId
    productDuplicateJobId
    userErrors {
      field
      message
    }
  }
}
Hide code
Input
Copy
{
  "input": {
    "includeImages": true,
    "newStatus": "ACTIVE",
    "newTitle": "<your-newTitle>",
    "productId": "gid://shopify/<objectName>/10079785100"
  }
}
input ProductDuplicateAsyncInput {
  includeImages: Boolean
  newStatus: ProductStatus
  newTitle: String!
  productId: ID!
}