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?

1 Answer 1

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 and acknowledge that you have read and understand our privacy policy and code of conduct.

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