Update Product
You can update your product information using this service. You can also change the product's category by providing category names.
curl --location --request PUT '<BASE_URL>/merchant-products/{merchantProductId}'
--header 'Content-Type: application/json'
--header 'Authorization: <jwtToken>'
--data '{
"name": "<string>",
"warrantyDuration": "<integer>",
"model": "<string>",
"description": "<string>",
"setupRequired": "<boolean>",
"mainCategoryName": "<string>",
"categoryName": "<string>",
"subCategoryName": "<string>",
"brand": "<string>",
"price": "<decimal>"
}'
Path Variables
| Parameter | Type | Required | Description |
|---|---|---|---|
| merchantProductId | Integer | Yes | Id value of the product to be updated |
Request Body
| Parameter | Type | Required | Description |
|---|---|---|---|
| name | String | No | The product name can be a maximum of 256 characters. |
| warrantyDuration | Integer | No | The product warranty period in months (e.g., 12 for 1 year, 24 for 2 years). |
| model | String | No | The product model can be a maximum of 256 characters. |
| description | String | No | The product description can be a maximum of 1000 characters. |
| setupRequired | Boolean | No | Indicates whether the product requires setup. |
| mainCategoryName | String | No | Main category name to change the product's category. |
| categoryName | String | No | Category name to change the product's category. |
| subCategoryName | String | No | Sub-category name to change the product's category. |
| brand | String | No | Brand name to change the product's brand. |
| price | Decimal | No | Product price. |
Info
If you don't provide category fields (mainCategoryName, categoryName, subCategoryName, brand), the product's current category will remain unchanged.