Update a line
update_lineChange a line's status, labels, source, memo, bank account, or (for a hand-made line) its text, date or amount. A status change goes into the thread with its note; not_needed is refused without a note or a label that means no receipt. A note without a status change is posted as a comment. Set done only when the file is the right kind for how the line was paid and its amount, date and merchant match: a card payment needs a receipt or an invoice marked paid; a bank transfer, bankgiro or plusgiro payment takes the supplier's invoice. Done on a card payment whose only files are an unpaid invoice or a notice goes through, with a warning in the answer.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "update_line"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | ||
| line | No | The line's ID, like #1042 (list_lines and read_line show it): names the line alone, instead of month and number. | |
| memo | No | The person's own words about the line, replaced whole. | |
| note | No | Why: where you found the receipt, what matches, or why no receipt is needed. | |
| text | No | ||
| month | No | The month as YYYY-MM, like 2026-09; with number, or give line instead. | |
| amount | No | ||
| labels | No | Replaces the line's labels with exactly these. A label that means no receipt (noReceipt) makes the line not_needed, the label the reason (no note needed); taking the last such label off makes it missing again (found with a file). | |
| number | No | The line's number in the month, like 12; with month, or give line instead. | |
| source | No | Where the receipt is found: a source's name or id (list_sources), or none (or null) to clear it. Written into the thread; set by hand, so a carry-over or a rule never changes it. | |
| status | No | ||
| bankAccount | No | Move the line to this bank account (name or id), or none to take it off any account. |