In official REST API guide Step 4. Define configurable product options, there are payload like below.
{ "option": { "attribute_id": "141", "label": "Size", "position": 0, "is_use_default": true, "values": [ { "value_index": 9 } ] } } Other parameters I can understand, but what is the function of value_index?
The guide just said
The value assigned to the
value_indexmust be unique within the system.
I have huge configurable products to create by the API, how can I make sure the value_index different in each creation?