Attach file
attach_fileAttach a file to an entity (invoice, expense, etc.).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entity | Yes | Entity kind to attach the file to, e.g. "expense", "income", "asset", "transaction", "entry", "client", "supplier", "product". For any document — invoice, quote, credit/debit note, purchase order, bill or goods-received note — use "contract" (its id may start with cont-, inv- or order-); the correct storage attribute is resolved from the id, so a bill (cont-… id) also resolves whether you pass "contract", "bill" or "invoice". | |
| fileid | Yes | Id of the uploaded file to attach (see /file/upload). | |
| entityid | Yes | Id of the entity to attach the file to. |