Change a unit
update_unitChanges a unit. Only the fields you send change. Existing bookings keep their agreed total. Acts on one venue, given its address and access key.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"address": "<address>",
"access_key": "<access_key>",
"unit_id": "<unit_id>"
},
"name": "update_unit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| beds | No | How many beds of each kind, e.g. {"double":1,"single":2}. Kinds: double, single, sofa, bunk. | |
| kind | No | What it is. | |
| name | No | Name guests see, e.g. "Sea-view studio" or "Tent or camper pitch". | |
| address | Yes | The venue’s address name, the "name" in name.bookare.app. | |
| unit_id | Yes | ||
| bedrooms | No | 0 = not shown. | |
| size_sqm | No | Size in square metres. 0 = not shown. | |
| amenities | No | Unit amenity keys (the unit_amenities list of this venue’s stay options), e.g. ["wifi","ac","kitchen"]. | |
| bathrooms | No | 0 = not shown. | |
| access_key | Yes | The venue’s access key. | |
| min_nights | No | Minimum nights per booking. Default 1. | |
| description | No | Free text for guests (up to 600 characters). | |
| guests_up_to | No | Most guests it takes (1-60). | |
| takes_bookings | No | False keeps the unit visible to guests but they cannot book it (e.g. not ready yet); its nights are closed on connected channels too. The venue can still add bookings itself. Default true. | |
| identical_units | No | How many identical ones exist, e.g. 20 tent and camper pitches. Default 1. | |
| shown_to_guests | No | False hides the unit from the booking page. Default true. | |
| price_per_night_eur | No | Base price per night in euro (seasons can override it). |