Magento2: REST API : Save Product Detail per store view not working

Emizen Tech picture Emizen Tech · Jun 10, 2016 · Viewed 7.4k times · Source

Using Magento2.1.0-rc1 Branch With Sample Data

Using REST API catalogProductRepositoryV1 REF: http://devdocs.magento.com/swagger/index.html Get Key from Admin token API and use that key in

POST /V1/products

&

PUT /V1/products/{sku}

with parameter tried with both parameter one by one

  • store_id=0
  • storeId=0 using following JSON

Does not support store_id / storeId field , but the information in product does not save to store it save to default Store ID

GET /V1/products has parameter storeId same i had tried with PUT & POST but not working with PUT & POST

Answer

Krt_Malta picture Krt_Malta · Jul 27, 2016

I've encountered a similar scenario where I want to update prices per website. So to update the price, I've used

/rest/<store_code>/V1/products/<sku>

This worked fine.

So I assume you can use this to update product data per store.