I'm using the REST api and believe that we can't update the value of an option of a product attribute: we only have the POST method and no PUT.

So, what would be the best way to do it in code?

In fact, I would like to create a custom API endpoint to do that.

Thanks a lot!

  • which API end point you are referring ? – Pawan Dec 30 '20 at 4:46
  • @Pawan Thanks, is products/attributes/{attributeCode}/options – Jorge Silva Dec 30 '20 at 10:13

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.