skip to Main Content

I’m experiencing a problem with PUT API requests with Magento 2.3.5.

I send the requests to endpoints like:
/rest/STORECODE/V1/products/PRODUCT_CODE

The data are properly stored on the right store having store code STORECODE, but the API response payload contains data of the default store, instead of STORECODE.

How can I get the data written on STORECODE without being forced to do another GET to the same endpoint /rest/STORECODE/V1/products/PRODUCT_CODE?
The GET to /rest/STORECODE/V1/products/PRODUCT_CODE returns the properly data I wrote (that I was expecting to be the return payload of the PUT)

Thank you!

2

Answers


  1. Chosen as BEST ANSWER

    we found out that the issue was caused by an extension that was not properly handling emulations.


  2. Using path:

    /rest/default/V1/products/PRODUCT_CODE/

    Add store in header

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search