This extension improves default features of Magento API.
It allows you to:
- Associate simple products to configurable or grouped product;
- Specify category names rather than the ids;
- Specify the name of the attribute set rather than the id;
- Specify options labels rather than the ids;
- Specify the website code rather than the id.
Just add to Yours configurable product entity : $product['associated_skus'] => ['sku_1', 'sku_2'];
If attribute set has more configurable fields than You want, then You should add:
$product['configurable_attributes'] = ['configurable_attribute_id', 'configurable_attribute_code'];
Install manually:
- Download latest version here
- Unzip in Magento root folder
- Clear cache
Please refer to this article.