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
we found out that the issue was caused by an extension that was not properly handling emulations.
Using path:
Add store in header