cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2: Creating configurable product using the REST API

Magento 2: Creating configurable product using the REST API

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: https://magento.stackexchange.com/questions/156374/how-do-i-create-a-configurable-product-using-the-..."

        "configurable_product_options":[
         {
           "attribute__id":"193",
           "label":"Colour",
           "position":0,
           "values":[
             {
               "value_index":340
             },
             {
               "value_index":341
             }
           ],

 

I am wondering why do I need this section below in configurable product?I noticed that this section is required in able to connect virtual product to configurable connect later. But values have no meaning.In virtual product I can assign any value I want. What is the purpose of this values?