I was wondering how I can create a new item with mulitple option values preset. For example, A shirt has the options, Size: values: S, and Colour: values: R, G. When I do this manually on the Shopify admin, I get the options, S/R, S/G.
However, with the API, using the below as options doesn't generate the permutations of options.
{
{
["name"]=>"Colour"
["values"]=>
{
[0]=>"Black"
}
}
{
["name"]=> "Size"
["values"]=>
{
"XS"
"S"
}
}
}
I know that you can use variants and assign option1 and option2, but that means I'll have to generate the permutations myself and send that post request. Is that the only way?