Set which units a stay has
PUT/api/v1/cart/:cartId/items/:itemId/properties
Replaces the stay's units with exactly the ones sent — swap, add and drop in one call; a unit left out (or sent with quantity 0) is removed. Every unit is checked against the listing and for availability on every night at its full new quantity. Returns the re-priced cart. 400 when no unit would remain, a unit is not on the stay's listing, a unit is not available for the stay's nights, or the cart is shared, booked, paid, on hold or under a price-change request; 404 for an unknown cart or item.
Request
Responses
- 200
OK