Upload document
upload_documentUpload a file to Lendlord and link it to a property or tenant by choosing a document slot or custom key. For bank transaction receipts, use attach_transaction_receipt instead.
Instructions
Upload a file to Lendlord and link it to a property (or tenant). To attach a file to a bank transaction (payment) use attach_transaction_receipt instead. Provide exactly one of filePath (on the server's machine), url, or base64 + fileName. key is a document slot from list_property_fields (e.g. gasCertificate, epc, eicr, insurancePolicy); any other key creates a custom document. Uses the account's upload quota.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Document slot key or a custom document key | |
| url | No | ||
| name | No | Display/file name; defaults to the source file name | |
| base64 | No | ||
| confirm | No | Set true once the user has approved writes for this session | |
| entityId | Yes | Property id (or tenant id with entityType tenant) | |
| fileName | No | ||
| filePath | No | ||
| mimeType | No | ||
| entityType | No | property |