Update Variant
Testing
PUT
/store/products/variant/{id}
BosOnline/Product
Catatan: Perbaikan url, Perbaikan response 400 &404
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT '/store/products/variant/ESB-003-24' \
--header 'Content-Type: application/json' \
--data-raw '{
"weight": 5000,
"lenght": 10,
"width": 10,
"height": 10,
"publish_rate": 50000,
"price": 45000,
"hpp": 40000
}'
Response Response Example
200 - Success
{
"message": "varian updated ESB-001-01"
}
Request
Path Params
id
string
required
Example:
ESB-003-24
Body Params application/json
Responses
Modified at 2025-06-20 03:31:47