Edit Product Detail (Product Detail)
Developing
PUT
/store/products/{id}
BosOnline/Product
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT '/store/products/ESB-006' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Biji kopi arabica",
"description": "Kopi pilihan asli",
"path_url": "biji-kopi-arabica",
"category_id": 1,
"weight": 1000,
"length": 10,
"height": 10,
"width": 10,
"publish_rate": 50000,
"price": 45000,
"hpp": 40000,
"qty": 10000,
"image": [
{
"file_name": "1750661540-444.png"
}
],
"attributes": [
{
"name": "Kemasan Kopi",
"items": [
"halus",
"sedang"
],
"priority": 1
},
{
"name": "Tingkat Giling",
"items": [
"1000 gr",
"2000 gr"
],
"priority": 2
}
],
"varian_items": [
{
"name": "Halus 1000 gr",
"sku": "ESB-006-01",
"stok": 101,
"min_qty": 100,
"weight": 100,
"length": 10,
"height": 10,
"width": 10,
"price": 45000,
"publish_rate": 50000,
"hpp": 40000,
"status": 1
},
{
"name": "Halus 2000 gr",
"sku": "ESB-006-02",
"varian_stok": 302,
"min_qty": 100,
"weight": 200,
"length": 10,
"height": 10,
"width": 10,
"price": 65000,
"publish_rate": 70000,
"hpp": 60000,
"status": 0
},
{
"name": "sedang 1000 gr",
"sku": "ESB-006-03",
"stok": 101,
"min_qty": 100,
"weight": 100,
"length": 10,
"height": 10,
"width": 10,
"price": 45000,
"publish_rate": 50000,
"hpp": 40000,
"status": 1
},
{
"name": "sedang 2000 gr",
"sku": "ESB-006-04",
"stok": 302,
"min_qty": 100,
"weight": 200,
"length": 10,
"height": 10,
"width": 10,
"price": 65000,
"publish_rate": 70000,
"hpp": 60000,
"status": 0
}
],
"product_cs": [
{
"cs_id": 5
}
],
"order_status": 1
}'
Response Response Example
200 - Success
{
"message": "Product Updated"
}
Request
Path Params
id
string
required
Example:
ESB-006
Body Params application/json
Responses
Modified at 2025-06-23 06:54:29