Update a bundle
Changed onUpdate a bundle
Request
- Base URLhttps://{your_organization_slug}.commercelayer.io/api
- URLhttps://{your_organization_slug}.commercelayer.io/api/bundles/{bundleId}
- AuthHTTP bearer
Path parameters
The resource's id
Request body
Example request
{
"data": {
"id": "XAyRWNUzyN",
"attributes": {
"code": "BUNDMM000000FFFFFFXLXX",
"name": "Men's Black T-shirt (XL) with Black Cap and Socks, all with White Logo",
"currency_code": "EUR",
"description": "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
"image_url": "https://img.yourdomain.com/bundles/xYZkjABcde.png",
"price_amount_cents": 10000,
"compare_at_amount_cents": 13000,
"_compute_price_amount": true,
"_compute_compare_at_amount": true,
"reference": "ANY-EXTERNAL-REFEFERNCE",
"reference_origin": "ANY-EXTERNAL-REFEFERNCE-ORIGIN",
"metadata": {
"foo": "bar"
}
},
"relationships": {
"tags": {
"data": {
"id": "XAyRWNUzyN"
}
}
}
}
}Response
The updated bundle object
Changes
- breaking
request property
/was restricted to a list of enum values - warning
removed the request property
// - warning
removed the request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
added the new optional request property
// - info
the request property
//became nullable - info
the request property
//became nullable - info
the request property
//became nullable - info
the request property
//became nullable - info
the request property
//became nullable - info
the request property
//became nullable - info
the request property
//became nullable - info
the request property
//became nullable - info
the
request property default valuebundleswas removed - info
added the new
bundlesenum value to the request property/ - info
added the media type
application/vnd.api+jsonfor the response with the status
- breaking