API call : /V1/products/{sku}
I'm Updating product by API.
In which I'm passing website ids 0,1,2.
It will update data only in stores, not to All store View.
I don't want it to update storewise,it should update Globally to all stores.
How can I achieve this?
UPDATE
I want to get Product All Store View and Store wise, also want the same update product store wise and all store view. How can I achieve it by API?
I want same for categories
Magento: 2.2.2
2 Answers 2
You will need to use a different endpoint to update all store views. This will update all store views:
/all/V1/products/{sku}
However, somthing like the following will only update default store view
/default/V1/products/{sku}
-
perfect answer!!! +1 made my day :)SagarPPanchal– SagarPPanchal2023年06月06日 09:54:57 +00:00Commented Jun 6, 2023 at 9:54
You can use this end point of API to achieve
/all/V1/products/{sku}