Create variant
create_variantAdd a new sellable variant to an existing product. Provide name, product_id, and include media with at least one image before adding a ready video.
Instructions
Create a new variant (sellable item) under an existing product. Required: name and product_id. media holds images and at most ONE video: a video entry is accepted only when the same media list also carries at least one image, and its video_id must already be READY (upload_video / upload_video_from_url, then poll get_video). Call get_operation_schema("CreateVariant") for the exact request shape (pricing, stocks, media, ...).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| variant | Yes | Variant record matching the CreateVariantRequest schema (see get_operation_schema("CreateVariant")). Required: name, product_id. |