addProductVariantOption
Add a product variant option to a product
This page contains
Arguments
| input AddProductVariantOptionInput! PREVIEW |
AddProductVariantOptionInput fields
| productId ID! | Id of the product to add the variant option to |
| code String | Unique product variant option code |
| name [LocalStringInput!]! | The name of the product variant option |
| inputType InputType! PREVIEW | The input type of the product variant option |
Return Fields
| product Product PREVIEW | Updated product |
| userErrors [AddProductVariantOptionError!] PREVIEW | User errors |
Interactive example
This is an example mutation query. Use the embedded interactive tool below to edit the query.
Hint: use Ctrl + Space for autocompleting fields.