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:
![Anmerkung 2020-04-30 082234.jpg Anmerkung 2020-04-30 082234.jpg](https://community.magento.com/t5/image/serverpage/image-id/18213iF79B54D06C13047A/image-size/small?v=v2&px=200)
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"?