Skip to main content
PATCH
/
v1
/
products
/
{id}
Update product details
curl --request PATCH \
  --url http://localhost:3000/v1/products/{id} \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "brand": "<string>",
  "selling_price": 1,
  "is_rfc_item": true,
  "is_active": true,
  "category_name": "<string>",
  "temperature_zone": "ambient",
  "size": "<string>",
  "image_url": "<string>"
}
'
{
  "success": true,
  "product": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "taxonomy_id": "<string>",
    "name": "<string>",
    "brand": "<string>",
    "image_url": "<string>",
    "size": "<string>",
    "selling_price": 123,
    "is_rfc_item": true,
    "is_active": true,
    "category_name": "<string>",
    "category_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "subcategory_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "temperature_zone": "<string>",
    "description": "<string>",
    "scraped_product_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z",
    "deleted_at": "2023-11-07T05:31:56Z"
  }
}

Path Parameters

id
string
required

Product UUID or taxonomy ID

Body

application/json
name
string
Required string length: 1 - 500
brand
string | null
Maximum string length: 200
selling_price
number
Required range: x >= 0
is_rfc_item
boolean
is_active
boolean
category_name
string | null
Maximum string length: 100
temperature_zone
enum<string>
Available options:
ambient,
refrigerated,
frozen
size
string | null
Maximum string length: 100
image_url
string<uri> | null

Response

Product updated

success
enum<boolean>
required
Available options:
true,
false
product
object
required