In order to create configurable product I need to create configurable product, virtual product and finally connect them.
Example of json request got from here: How do I create a configurable product using the REST API v2?
I am wondering why do I need this section below in configurable product?
"configurable_product_options":[
{
"attribute__id":"193",
"label":"Colour",
"position":0,
"values":[
{
"value_index":340
},
{
"value_index":341
}
],
I noticed that this section is required in able to connect virtual product to configurable connect later. But values has no meaning.
In virtual product I can assign any value I want. What is the purpose of this values?
Best Answer
Please try with below code, I hope its work for you.
created a simple product with 'color' attribute and simple product ids are 1011,1012 & 1013.