create_unit_document
Create a Properties trail document by uploading a PDF or file to a property unit, which also creates a trail row. Send content as base64 to avoid re-attaching.
Instructions
Create a Properties trail document (NK letter, HV file, …). Send contentBase64 for the PDF/file. Use this instead of asking the user to re-attach. Uploading into Achi Properties/{unit} also creates a trail row.
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": {
"unitId": "<unitId>"
},
"name": "create_unit_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | No | ||
| notes | No | ||
| title | No | ||
| unitId | Yes | ||
| category | No | lease | deposit | hausgeld | nebenkosten | deed | repair | energy | insurance | tax | correspondence | other | |
| fileName | No | ||
| mimeType | No | ||
| periodTo | No | ||
| periodFrom | No | ||
| driveFileId | No | ||
| occupancyId | No | ||
| documentDate | No | YYYY-MM-DD or DD.MM.YYYY — the letter/receipt date, not 31 Dec of the settlement year | |
| contentBase64 | No | Raw file bytes as base64 |