Hello,
I found now:
/rest/default/V1/products/attributes/{attributeCode}/options
with the payload:
{
"option": {
"label": "red",
"value": "red_default",
"is_default": "false",
"sort_order": 0,
"store_labels": [
{
"store_id": 1,
"label": "red en"
},
{
"store_id": 2,
"label": "red de"
}
]
}
}
response:
"id_5476"
in admin:
so far, ok.
But when I read the options:
[
{
"label": " ",
"value": ""
},
{
"label": "21/1.7” 12 Megapixel Progressiv CMOS",
"value": "5431"
},
{
"label": "red en",
"value": "5476"
}
]
he return the first store label and the id(!)
the id(swatch) was "red_default"
Wow can I get from id 5476 the text "red_default"?