Update Product
PUT
/v1/products/:idUpdate an existing product. Only include fields you want to change.
products.write
Requires the products.write permission scope.
Updatable Fields
| Field | Type | Description |
|---|---|---|
name | string | Product name |
description | string | Product description |
base_price | number | Base unit price |
currency | string | Currency code |
unit_of_measure | string | Unit of measure |
sku | string | SKU / part number |
category_id | uuid | Product category |
images | string[] | Image URLs (replaces existing array) |
is_available | boolean | Availability flag |
specifications | object | Specifications (replaces existing object) |
moq | integer | Minimum order quantity |
status | string | Product status: active, draft, or archived |
Fires product.updated webhook with updated_fields array. If base_price changes, also fires product.price_changed.
Example Request
Update Price & Availabilitybash
curl -X PUT "https://rjpxllsycikfabazvkdh.supabase.co/functions/v1/directory-api/v1/products/prod-uuid" \
-H "X-API-Key: your-key" \
-H "Content-Type: application/json" \
-d '{
"base_price": 5200000,
"is_available": true,
"moq": 5
}'Response
{
"data": {
"id": "prod-uuid",
"name": "Executive Standing Desk",
"base_price": 5200000,
"is_available": true,
"moq": 5,
"updated_at": "2026-03-15T10:30:00Z"
}
}Last updated on March 15, 2026