enter image description here

I tried to update the product using REST API but it shows the page this like i can't recognise the error please any one help to resolve it. Header : rest/all/V1/products/SKU My API :

      "name":"My product name",




I find the line in UI DataProvide ( vendor\magento\module-catalog\Ui\DataProvider\Product\ProductDataProvider.php )


Thanks in Advance :)


if you are using docker try

dockergento magento c:f

if not try

php bin/magento c:f

about error try if (!isset ... ->toArray()) or try removing toArray at all.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.