Update Business
PUT
/v1/businesses/:idUpdate an existing business listing. Only include fields you want to change.
businesses.write
Requires the businesses.write permission scope.
Path Parameters
| Parameter | Type | Description |
|---|---|---|
id | uuid | The business UUID to update |
Updatable Fields
Send only the fields you want to update. All fields are optional. Unrecognized fields are silently ignored.
| Field | Type | Description |
|---|---|---|
name | string | Business name |
description_en | string | Description (English) |
description_id | string | Description (Indonesian) |
category_id | uuid | Primary category |
region_id | uuid | Region |
country_id | uuid | Country |
address | string | Physical address |
phone | string | Phone number |
email | string | Contact email |
website | string | Website URL |
whatsapp_number | string | WhatsApp number |
can_fulfill_orders | boolean | Can fulfill procurement orders |
visibility | string | public, internal, or draft |
booking_url | string | Booking/scheduling URL |
google_maps_url | string | Google Maps link |
year_established | integer | Year founded |
certifications | string[] | Business certifications |
payment_terms | string[] | Accepted payment terms |
minimum_order_value | number | Minimum order value |
operating_hours | object | Operating hours JSON |
latitude | number | GPS latitude |
longitude | number | GPS longitude |
Fires the business.updated webhook with updated_fields array showing which fields changed.
Example Request
Partial Updatebash
curl -X PUT "https://rjpxllsycikfabazvkdh.supabase.co/functions/v1/directory-api/v1/businesses/550e8400-e29b-41d4-a716-446655440000" \
-H "X-API-Key: your-key" \
-H "Content-Type: application/json" \
-d '{
"phone": "+62898765432",
"can_fulfill_orders": true,
"certifications": ["ISO 9001", "SVLK"]
}'Response
{
"data": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "PT Furniture Jaya",
"phone": "+62898765432",
"can_fulfill_orders": true,
"certifications": ["ISO 9001", "SVLK"],
"updated_at": "2026-03-15T10:30:00Z"
}
}Last updated on March 15, 2026