Skip to main content

Preview Copy From Parent

POST 

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

Lists, per variant, every change copying from its parent would make: the group, the field, the variant's current value and the parent's. Nothing is written. A product that is not a variation comes back with status: failed and an error.

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