Skip to content

MAGENTO 2 REST API: PUT through POSTMAN [Resolved]

I’m trying a PUT on Magento 2 REST API through POSTMAN like this:

https://domain/rest/V1/products/IP_X

With only a price change on the json content.

getting the following error message:

{
    "message": ""%fieldName" is required. Enter and try again.",
    "parameters": {
        "fieldName": "product"
    }
}

The REST API spec https://devdocs.magento.com/guides/v2.3/rest/list.html indicates the URL to be “PUT /V1/products/:sku” and the json should include only the parameter to change.

Any idea?

[RESOLED]

I found the answer, the json content should be like this:

{ "product": { "price": "500.55" } }