I want to populate custom attribute while creating create product.
I have created below plugin which is working fine while saving product using REST Bulk API v1/products
.
But it's not working while we are running this bulk product save API asynch/bulk/v1/products
.
File location are given below"
app/code/Vendor/Module/etc/webapi_rest/di.xml
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
<type name="Magento\Catalog\Api\ProductRepositoryInterface">
<plugin name="name-integrations" type="Vendor\Module\Plugin\ProductPlugin" sortOrder="10"/>
</type>
</config>