Update journal entry
update-journal-entryUpdate a draft journal entry, or re-tag any entry's flows or management dimensions. If line_items is provided, existing line items are replaced atomically, the new set must balance, and a line on a retired (is_active=false) account is refused. line_flows sets the cash flow row of the named lines in place, on a posted entry too, closed month included, since a flow moves no balance; the lines on the other side of the entry that were in step with it follow. line_dimensions sets the department, class, location or project members the named lines carry, in place, on a posted entry and a closed month too, since a dimension moves no balance either. Posted entries accept nothing else and are corrected via create-event-block(event_type='journal_entry_reversed').
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"memo": "Corrected vendor reference",
"entry_id": "ent_01HVF8T0M2YTAY3BBNRH0V0"
},
"name": "update-journal-entry"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| memo | No | New entry-level memo. | |
| type | No | New entry type. `closing` should normally only be set by close-period. | |
| entry_id | Yes | The draft entry to update. | |
| line_flows | No | Re-tag lines in place: each named line takes its `flow_qname` (null clears it), and when every line on that side of the entry then carries one flow, the lines on the other side not named here follow when they were in step with it — untagged, or carrying the flow the named lines carried before — so the cash line and the account line agree; a line tagged differently on purpose keeps its tag. Allowed on a posted entry, closed month included, and the only change one accepts; recorded on the entry as `flow_retags`, with what each changed line carried before. Not combinable with `line_items`, which replaces the lines (set `flow_qname` on them). | |
| line_items | No | Replacement line items. Whole-list replacement (not patch). The new set must still balance (total_debit == total_credit). Omit to leave existing lines untouched. | |
| posting_date | No | New posting date. | |
| line_dimensions | No | Re-tag lines' management dimensions in place: each named line carries exactly the members given (empty clears them). A dimension moves no balance, so this is allowed on a posted entry, closed month included; recorded on the entry as `dimension_retags`, with what each line carried before. Not combinable with `line_items` (set `dimension_ids` on the new lines). |