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.
products:writeGrant 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 familiesgroups(array of strings, required, may be empty) — any ofsuppliers,pricing,classification,physical,media,tax_accounting,inventory,channelsmode(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
- 200
- 401
- 403
- 422
- 429
OK
Response Headers
Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.
Forbidden — the token lacks a required scope, the endpoint is not available to API tokens, or the user behind the token lacks the permission. A human must adjust the token scopes or user permissions; do not retry.
Unprocessable Entity
Response Headers
Rate limited — platform limit is 1,000 requests/min; individual tokens may carry lower limits. Honor the Retry-After header before retrying. See the Rate Limits guide.