I Have a very big problem when I try to add child products via magento API. Always receiving following exeption. This problem will be just caused by adding via API. I can create Child articles via magento backend with ease... Here is log:
1. successfully create a parent item:
ACTION:
PUT
URL:
/index.php/rest/V1/products/8100
HEADER:
Content-Type:application/json
Accept:application/xml
............
RESPONSE:
HTTPCODE:
200
RESPONSE:
<?xml version="1.0"?>
<response>
<id>361</id>
<sku>8100</sku>
...........
Then I try to add a child item:
ACTION:
POST
URL:
/rest/V1/configurable-products/8100/child
HEADER:
Content-Type:application/json
Accept:application/xml
REQUEST:
{"childSku": "8116"}
RESPONSE (with error):
HTTPCODE:
400
RESPONSE:
<?xml version="1.0"?>
<response>
<message>Products "%1" and "%2" have the same set of attribute values.
</message>
<parameters>
<item>372</item>
<item>337</item>
</parameters>
</response>