attach_file
Attach an uploaded file to a Billy daybook transaction, invoice, or bill. Provide the file ID and the record's type and ID to link a receipt or document.
Instructions
Attach an uploaded file to a Billy record (daybook transaction, invoice, or bill). Get the fileId from upload_file or list_files. Example: attach a receipt to journal entry #67 → ownerType 'daybookTransaction', ownerId ''.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fileId | Yes | File ID (see upload_file / list_files) | |
| ownerId | Yes | ID of the record to attach the file to | |
| verbose | No | Return the full Billy response. Default false: compact records with key fields only (saves ~90% context) | |
| priority | No | Sort priority among the attachments of the same owner | |
| ownerType | Yes | Type of the record to attach the file to |