Create Product Variants
shopify_create_variantsAdd new variants to an existing Shopify product by supplying option values that match its options, and optionally remove the standalone default variant.
Instructions
Add new variants to an existing product.
Each variant must supply optionValues matching the product's options — e.g. for a product with options Size and Colour: optionValues: [{ optionName: "Size", name: "M" }, { optionName: "Colour", name: "Black" }]. Read the product's options first with shopify_get_product_by_id.
strategy REMOVE_STANDALONE_VARIANT deletes the auto-created default variant — use it when adding the first real variants to a product that was created without options.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| strategy | No | DEFAULT | |
| variants | Yes | ||
| productId | Yes | Product GID |