1

I am trying to update a product via the Magento 2 Rest API.

If an attribute already has a value I can update that value with another value with no problems.

However if I want to delete the value and leave the attribute blank it will not update and just leaves the old value in place.

I have tried submitting NULL and blank values but with no effect.

array( 'attribute_code' => 'standard_consumables', 'value' => '' ),
array( 'attribute_code' => 'standard_consumables', 'value' => NULL ),

How can I remove a custom attribute value via the REST API.

Thanks

  • do you found answer for this? – prasad maganti Sep 11 '17 at 15:14
  • Unfortunately not – LeoMan Sep 11 '17 at 21:03
  • Niether did I :( I've been finding too many Magento REST API questions unanswered :/ – Tomáš Fejfar Jul 18 '18 at 9:25

Your Answer

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

Browse other questions tagged or ask your own question.