update_unit
Update property unit fields like size, rent, tenant, and notes. Snapshots the current row to enable undo with restore_unit, using ifUpdatedAt to prevent overwriting newer changes.
Instructions
Write Properties fields (squareMeters, rooms, rent, tenant, notes, …). Snapshots the current row first so restore_unit can undo a bad write. Always pass versionReason. Use ifUpdatedAt from get_unit.updatedAt to avoid clobbering.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| city | No | ||
| name | No | ||
| todo | No | ||
| notes | No | ||
| rooms | No | ||
| energy | No | ||
| extras | No | ||
| garage | No | ||
| address | No | ||
| heating | No | ||
| rentEuros | No | ||
| leaseStart | No | ||
| tenantName | No | ||
| ifUpdatedAt | No | ISO updatedAt from get_unit — 409 if stale | |
| tenantEmail | No | ||
| buildingYear | No | ||
| purchaseDate | No | ||
| squareMeters | No | ||
| hausgeldEuros | No | ||
| versionReason | No | Why this write — stored on the snapshot | |
| marketValueDate | No | ||
| coOwnershipShare | No | ||
| lastRentIncrease | No | ||
| marketValueEuros | No | ||
| nebenkostenEuros | No | ||
| marketValueSource | No | ||
| propertyManagement | No | ||
| purchasePriceEuros | No | ||
| rentAgreementNotes | No |