I am using SOAP v1 of the Magento API, I am trying to add an option to an attribute. Using the following documentation Link
This is the code I am using just as a test
$attributeCode = "colour";
$optionToAdd = array(
"Label" => array(
array(
"store_id" => 1,
"value" => "Green"
)
),
"order" => 0,
"is_default" => 0
);
When I make the call to the API it returns the following -
<b>Fatal error</b>: Uncaught SoapFault exception: [108] Default option value is not defined
I cannot for the life of me get this to work. There is nothing else I am missing from the docs?!
I think it might be that you must define a value for store_id 0 (admin)? You only define a value for store_id 1 but it might be required to have a value in the admin.