Skip to main content

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

ParameterTypeRequired
Description
merchantProductIdIntegerYesId value of the product to be updated

Request Body

ParameterTypeRequired
Description
nameStringNoThe product name can be a maximum of 256 characters.
warrantyDurationIntegerNoThe product warranty period in months (e.g., 12 for 1 year, 24 for 2 years).
modelStringNoThe product model can be a maximum of 256 characters.
descriptionStringNoThe product description can be a maximum of 1000 characters.
setupRequiredBooleanNoIndicates whether the product requires setup.
mainCategoryNameStringNoMain category name to change the product's category.
categoryNameStringNoCategory name to change the product's category.
subCategoryNameStringNoSub-category name to change the product's category.
brandStringNoBrand name to change the product's brand.
priceDecimalNoProduct price.
Info

If you don't provide category fields (mainCategoryName, categoryName, subCategoryName, brand), the product's current category will remain unchanged.