Skip to content

Catalog Product — Copy

Equivalent to POST /api/admin/catalog/products/{sourceId}/copy.

Prerequisites

The example uses an illustrative id value. Replace it with the id of a product that exists in your store — use the adminCatalogProducts query to discover valid ids.

Operation

OperationType
createAdminCatalogProductCopyMutation

Input

FieldTypeRequiredNotes
sourceIdInt!yesID of the product to duplicate.

Notes

  • Refuses variants (parent_id != null) — surfaces in errors[].
  • Fires catalog.product.create.before / .after on the copy.

Released under the MIT License.