Update event block
update-event-blockApply a status transition (captured → classified | committed | voided) and/or field corrections (description, effective_at, metadata_patch) to an existing event block. Only supplied fields are updated. captured → classified records an account choice without posting — for a bank-feed line, patch metadata.classified_element_id (or accept_suggestion: true) in the same call. When the transition is captured/classified → committed, the registered Python handler (else the matching event handler's template) fires against the captured metadata to produce the GL rows, unless it already wrote them when the event was created; an event with a handler cannot skip to pending or fulfilled without rows. A bank-feed line with no account chosen and no matching rule is refused. Errors from the handler (validation, element resolution, closed period, unbalanced lines) surface as 422 here so the inbox UI can display the failure reason without retry. A bank line's flow is a second classification beside its account, overriding the account's default flow on the cash flow and equity statements: patch classified_flow_qname (or flow_qname on each classified_allocations part) with an rs-gaap flow concept such as rs-gaap:ProceedsFromIssuanceOfLongTermDebt. On a line that has already posted, this re-tags its lines in place, in a closed month too, since no balance moves; an empty string clears it. A payment or bank line records the invoices or bills it settles with discharge_allocations (positive cents per document, together at most its amount) or one discharges_event_id; each is checked: an invoice for money in, a bill for money out, on its own entity, not voided.
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": {
"event_id": "evt_abc123",
"transition_to": "committed"
},
"name": "update-event-block"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| due_date | No | New due date of an obligation (an `invoice_issued` or a `bill_received`), such as an extension granted. Unset = unchanged. It moves no ledger row, so it is accepted in a closed period. | |
| event_id | Yes | Target event ID. | |
| description | No | Replacement free-text summary. Unset = unchanged; pass an empty string to clear. | |
| document_id | No | Set or replace the stored document the event rests on; an empty string detaches it. Must be a document on this graph. Unset = unchanged. | |
| effective_at | No | New accounting recognition date. Unset = unchanged. Useful when an event was captured against the wrong period. | |
| event_action | No | Set or correct the canonical action verb. Unset = unchanged. Useful when an adapter improvement makes a previously-NULL verb fillable, or when reclassifying after the fact. | |
| transition_to | No | Status transition. Valid moves depend on current status: captured → classified | committed | voided | superseded; classified → committed | pending | fulfilled | voided | superseded; committed → pending | fulfilled | voided | superseded; pending → fulfilled | voided | superseded; fulfilled → voided | superseded. A retraction (voided, superseded) is final and is refused from any status once the event's ledger rows have posted or it has published to QuickBooks — reverse the posted entries instead. captured → classified records an account choice without posting (bank-feed lines: patch classified_element_id, or accept_suggestion: true, in the same call); the later commit fires the handler. Note: classified and fulfilled are otherwise set by handlers, not by callers, but the transition is allowed for corrections. | |
| metadata_patch | No | Key-value pairs merged into existing metadata (additive patch, not replace). | |
| source_retracted | No | With `transition_to: voided`, for an event from the external ledger that keeps the entity's books: the source no longer holds this record, so its posted entries are taken out of the books and the event is voided, in an open period. Refused for any other event. | |
| superseded_by_id | No | New event id that replaces this one. Required when transition_to='superseded'. | |
| discharges_event_id | No | Set the settlement link: the one invoice or bill this payment settles, at its full amount; an empty string clears it. Replaces any `discharge_allocations`. Checked as they are. | |
| discharge_allocations | No | What this payment settles, document by document: one row per invoice or bill with the positive cents applied to it, together at most the payment's amount (the rest is unapplied). Replaces any held; an empty list clears them, and the settlement link becomes the first row's. Each must be an obligation of this event's entity, not voided: an invoice for money in, a bill for money out; a journal entry, which moves no cash, may settle either (bills converted into a note). A person chooses them; the open items a bank line may settle are `list-discharge-candidates` over MCP and `dischargeCandidates` over GraphQL. | |
| obligated_by_event_id | No | Set/update the forward-materialization link. |