0

I had tried to update price of single item & I got below error

message: '%fieldName is a required field.'

I have used below url-

"http://localhost/magento2/rest/V1/products/{sku}".

method:"PUT"
body:{"items":{
       "price":50
        }
     };

How can I resolve this error?

0

Please try the json body as shown below:

{
 "product":
 {
   "price":123
 }
}

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.