Update Bundle
PUT /v1/product/bundle/:id
Updates an existing product bundle with new configuration including name, associated products, pricing, and availability settings. This endpoint validates the input and applies changes to the bundle. Returns the complete updated bundle object with all current values.
Request Body
{
"name": "Bundle name",
"products": [
{
"id": "{{group_id}}",
"amount": 2
}
],
"ingress": "Bundle short description",
"price": 100,
"available_to": {
"tenants": [],
"config": {
"isAll": true,
"isPublic": true
}
}
}
Response Example
{
"_id": "bundle-id-1",
"name": "Updated Bundle Name",
"tenant": "tenant-id-1",
"products": [
{
"id": "product-id-1",
"amount": 2
}
],
"ingress": "Updated bundle description",
"price": 150,
"available_to": {
"tenants": [],
"config": {
"isAll": true,
"isPublic": true
}
},
"created": "2025-01-01T00:00:00.000Z",
"updated": "2025-01-02T00:00:00.000Z"
}