PSA: Not all REST API endpoint adhere to the siteview scope in URL

TLDR: Not all REST API endpoints adhere to the siteview scope you can set in the URL. The Magento dev’s won’t fix this bug, but also do not specify which REST API endpoints are affected by this bug.

Long version:
A few weeks ago, we upgraded to Magento 2.4.3-p1. To our suprise, the bundle product API broke, causing problems with our options in different siteviews. Normally, you can specify which siteview the rest api call affects by passing the scope in the URL like so: `<HTTP verb> http://<host>/rest/<scope>/<endpoint>`. However, when you do this with the bundle options, only the scope you specify gets updated. The rest of the siteview **get their price set to 0**. This means you can never use the API to update the prices, because it will always leave 1 or more siteviews with prices of 0.

I created a issue regarding this problem, expecting it would be marked as bug and would be fixed. To my suprise, I had to explain multiple times what the issue was, on multiple test machines, and even record my testcase since they threw away my test setup twice…, only to hear that it was “expected behavior” and won’t be fixed. With no workaround to this, there is absolutely no possible way to update bundle products using the REST API without causing problems in other sideviews.

If you are a Magento API Consumer and you care about using this functionality, please show support on github to draw some more attention to this problem.

Github issue: https://github.com/magento/magento2/issues/35595

submitted by /u/nvandermeij
[link] [comments]