Append Beancount Directive Text
appendLedgerTextAppend Beancount directive text as you would write it into a file; postings indented under their transaction. Routes each directive to its file by type and date (path overrides) and inserts it in date order. Max 50 directives. Non-directive text, and text introducing new bean-check errors (UNBALANCED when a transaction does not balance), are refused unless allowInvalid. dry_run returns the diff and projected errors without committing. Adds directives without rewriting files, unlike updateLedgerFiles. The commit message is composed from the appended text; there is no message argument. Syntax: https://beancount.github.io/docs/beancount_language_syntax/
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Target file; omit to auto-route. | |
| text | Yes | e.g. `2026-01-02 * "Cafe" ""` plus indented postings. | |
| dryRun | No | Alias of dry_run, as REST and GraphQL spell it. | |
| ledger | No | Target ledger as owner/name. Required for an unpinned credential; defaults to the credential's ledger restriction. | |
| dry_run | No | ||
| allowInvalid | No | ||
| allow_invalid | No | Alias of allowInvalid. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| error | No | ||
| result | No |