6

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

Savan Patel
2,4541 gold badge19 silver badges42 bronze badges
asked Dec 20, 2019 at 5:35

2 Answers 2

8

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}
answered Dec 24, 2019 at 13:18
1
  • perfect answer!!! +1 made my day :) Commented Jun 6, 2023 at 9:54
-1

You can use this end point of API to achieve

/all/V1/products/{sku}

answered Jan 7, 2020 at 6:21

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.