Product attribute overwrite with empty value

DirkAVADirkAVA Member Posts: 2

Hi all,


How can I overwrite an attribute string value with an empty value?

I've tried an empty string but I receive the following error:

Response body:

{"error":{"code":400,"method":"UPDATE","request":"\/nl\/products\/113033667\/attributes.json","message":"Invalid data input."}}


Seems like the data is invalid.

Request body:

"productAttributes" => [

  {

   "id" => 764566,

   "value" => ""

  },

  {

   "id" => 763765,

   "value" => "Test value"

  }

 ]

})


What is the correct way to make an attribute field empty?


Thanks,

Kindest regards,

Dirk

Best Answer

Answers

Sign In or Register to comment.