Shop
Change a product (JSON Merge Patch)
patch/products/{id}
Request
- Base URLhttps://gorest.co.in/public/v3
- URLhttps://gorest.co.in/public/v3/products/{id}
- AuthHTTP bearer
Headers
If-Matchstring
The strong ETag the change is based on, from a read without include or from the last write; when the item changed since, the answer is 412. A weak ETag never matches.
Prefer'return=minimal' | 'return=representation'
return=minimal for an answer with no body, return=representation (the default) for the full item (RFC 7240).
Request body
Example request
{
"sku": "EL-1001"
}Response
The changed product.
Example response
{
"category": {
"name": "Home and kitchen",
"slug": "home-kitchen"
},
"currency": "INR",
"name": "Wireless earbuds",
"price_minor": 249900,
"sku": "EL-1001"
}Changes
No recorded changes to this operation across all 1 revision of this API.