I've been using the Magento API for a while now, and create products via it, as I am now using 'Option' in a dropdown I want to populate it if the option is not found....
As such, I am using the following JSON:
{
"option": {
"label": "14",
"value": "14",
"sort_order": 0,
"is_default": true,
}
}
Looking at the swagger document, this should be accepted! I'm posting to the following URL:
/index.php/rest/V1/products/attributes//options
I get the following error:
{"message":"%fieldName is a required field.","parameters":{"fieldName":"option"}}
But, I'm specifying option in the JSON.
Appreciate any help.