Update Flash Sale
Developing
Request
Provide your bearer token in the Authorization
header when making requests to protected resources. Example:Authorization: Bearer ********************
Body Params application/json
{
"name": "string",
"description": 0,
"start_time": 0,
"end_time": 0,
"max_buyers": 0,
"products": [
{
"product_id": 0,
"variant_id": 0,
"variant_value_id": 0,
"sale_price": 0,
"stock": 0
}
]
}
Request Code Samples
curl --location --request PUT 'http://petfen-product.local.com:8082/api/cms/v1/product/flash-sale/update/' \
--header 'X-Auth-Service;' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "string",
"description": 0,
"start_time": 0,
"end_time": 0,
"max_buyers": 0,
"products": [
{
"product_id": 0,
"variant_id": 0,
"variant_value_id": 0,
"sale_price": 0,
"stock": 0
}
]
}'
Responses
application/json {
"message": "Chương trình flash sale update thành công",
"success": true
}
Modified at 2025-06-24 09:38:52