Skip to main content

Copy From Parent

POST 

/api/v2/products/variants/copy-from-parent

Makes the changes the preview lists. Each variant is updated in its own transaction, so a failure leaves that variant untouched and the others updated. Every updated variant gets a History entry naming the parent and the fields copied. Images are linked to the parent's files, not duplicated.

Required scope: products:write

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Body fields

  • product_ids (array of integers, required, 1–500) — the variations to update; each copies from its own parent, so one request can cover several families
  • groups (array of strings, required, may be empty) — any of suppliers, pricing, classification, physical, media, tax_accounting, inventory, channels
  • mode (string, optional) — fill_blanks (default): only fields the variant has left blank or at their default take the parent's value; overwrite: values that differ are replaced too. Neither mode removes anything the variant has and the parent doesn't.
  • supplier_sku_pattern (string, optional, ≤120 chars) — supplier SKU for a supplier link the variant gets; placeholders {parent_supplier_sku}, {parent_sku}, {v1}…

Authentication: Requires Bearer token.

Request​

Responses​

OK

Response Headers
    Content-Type