Skip to content

REST API : Save Product Detail per store view not working  #4952

Closed
@emizentech

Description

@emizentech

Steps to reproduce

  1. Install Magento from 2.1 branch.
  2. Deploy Sample Data
  3. 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
{
    "saveOptions": "true",
    "product": {
        "name": "Test11_11",
        "sku": "TESTOPP_111",
        "attributeSetId": "15",
        "price": "10",
        "weight": "10",
        "status": "1",
        "visibility": "3",
        "customAttributes": [
            {
                "attributeCode": "manufacturer",
                "value": "222"
            },
             {
                "attributeCode": "store_id",
                "value": "0"
            },

            {
                "attributeCode": "tax_class_id",
                "value": "0"
            },
            {
                "attributeCode": "specialPrice",
                "value": "10"
            },
            {
                "attributeCode": "description",
                "value": "44332211"
            },
            {
                "attributeCode": "eco_collection",
                "value": "1"
            }
        ],
        "typeId": "simple"
    }
}

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions