@@ -113,20 +113,25 @@ def sync_detailed(
113113) -> Response [ErrorResponse | OperationEnvelopeJournalEntryResponse ]:
114114 """Update Journal Entry
115115
116- Update a draft journal entry. Posted entries are immutable and must be corrected via `create-event-
117- block(event_type='journal_entry_reversed')`. If line_items is provided, existing line items are
118- replaced atomically, the new set must balance, and a line on a retired (`is_active=false`) account
119- is refused.
116+ Update a draft journal entry, or re-tag any entry's flows. If line_items is provided, existing line
117+ items are replaced atomically, the new set must balance, and a line on a retired (`is_active=false`)
118+ account is refused. `line_flows` sets the cash flow row of the named lines in place, on a posted
119+ entry too, closed month included, since a flow moves no balance; the lines on the other side of the
120+ entry follow when that side carries one flow. Posted entries accept nothing else and are corrected
121+ via `create-event-block(event_type='journal_entry_reversed')`.
120122
121123 **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours
122124 return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
123125
124126 Args:
125127 graph_id (str):
126128 idempotency_key (None | str | Unset):
127- body (UpdateJournalEntryRequest): Update a draft journal entry. Posted entries cannot be
128- updated —
129- create a reversal and a corrected entry instead.
129+ body (UpdateJournalEntryRequest): Update a draft journal entry, or re-tag any entry's
130+ flows.
131+
132+ Posted entries accept only `line_flows`: a flow moves no balance, so it
133+ changes in place, closed month or not. Anything else on a posted entry is
134+ a reversal and a corrected entry.
130135
131136 Omitted fields are left unchanged. If `line_items` is provided, the
132137 existing line items are replaced entirely (atomic delete + insert)
@@ -163,20 +168,25 @@ def sync(
163168) -> ErrorResponse | OperationEnvelopeJournalEntryResponse | None :
164169 """Update Journal Entry
165170
166- Update a draft journal entry. Posted entries are immutable and must be corrected via `create-event-
167- block(event_type='journal_entry_reversed')`. If line_items is provided, existing line items are
168- replaced atomically, the new set must balance, and a line on a retired (`is_active=false`) account
169- is refused.
171+ Update a draft journal entry, or re-tag any entry's flows. If line_items is provided, existing line
172+ items are replaced atomically, the new set must balance, and a line on a retired (`is_active=false`)
173+ account is refused. `line_flows` sets the cash flow row of the named lines in place, on a posted
174+ entry too, closed month included, since a flow moves no balance; the lines on the other side of the
175+ entry follow when that side carries one flow. Posted entries accept nothing else and are corrected
176+ via `create-event-block(event_type='journal_entry_reversed')`.
170177
171178 **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours
172179 return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
173180
174181 Args:
175182 graph_id (str):
176183 idempotency_key (None | str | Unset):
177- body (UpdateJournalEntryRequest): Update a draft journal entry. Posted entries cannot be
178- updated —
179- create a reversal and a corrected entry instead.
184+ body (UpdateJournalEntryRequest): Update a draft journal entry, or re-tag any entry's
185+ flows.
186+
187+ Posted entries accept only `line_flows`: a flow moves no balance, so it
188+ changes in place, closed month or not. Anything else on a posted entry is
189+ a reversal and a corrected entry.
180190
181191 Omitted fields are left unchanged. If `line_items` is provided, the
182192 existing line items are replaced entirely (atomic delete + insert)
@@ -208,20 +218,25 @@ async def asyncio_detailed(
208218) -> Response [ErrorResponse | OperationEnvelopeJournalEntryResponse ]:
209219 """Update Journal Entry
210220
211- Update a draft journal entry. Posted entries are immutable and must be corrected via `create-event-
212- block(event_type='journal_entry_reversed')`. If line_items is provided, existing line items are
213- replaced atomically, the new set must balance, and a line on a retired (`is_active=false`) account
214- is refused.
221+ Update a draft journal entry, or re-tag any entry's flows. If line_items is provided, existing line
222+ items are replaced atomically, the new set must balance, and a line on a retired (`is_active=false`)
223+ account is refused. `line_flows` sets the cash flow row of the named lines in place, on a posted
224+ entry too, closed month included, since a flow moves no balance; the lines on the other side of the
225+ entry follow when that side carries one flow. Posted entries accept nothing else and are corrected
226+ via `create-event-block(event_type='journal_entry_reversed')`.
215227
216228 **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours
217229 return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
218230
219231 Args:
220232 graph_id (str):
221233 idempotency_key (None | str | Unset):
222- body (UpdateJournalEntryRequest): Update a draft journal entry. Posted entries cannot be
223- updated —
224- create a reversal and a corrected entry instead.
234+ body (UpdateJournalEntryRequest): Update a draft journal entry, or re-tag any entry's
235+ flows.
236+
237+ Posted entries accept only `line_flows`: a flow moves no balance, so it
238+ changes in place, closed month or not. Anything else on a posted entry is
239+ a reversal and a corrected entry.
225240
226241 Omitted fields are left unchanged. If `line_items` is provided, the
227242 existing line items are replaced entirely (atomic delete + insert)
@@ -256,20 +271,25 @@ async def asyncio(
256271) -> ErrorResponse | OperationEnvelopeJournalEntryResponse | None :
257272 """Update Journal Entry
258273
259- Update a draft journal entry. Posted entries are immutable and must be corrected via `create-event-
260- block(event_type='journal_entry_reversed')`. If line_items is provided, existing line items are
261- replaced atomically, the new set must balance, and a line on a retired (`is_active=false`) account
262- is refused.
274+ Update a draft journal entry, or re-tag any entry's flows. If line_items is provided, existing line
275+ items are replaced atomically, the new set must balance, and a line on a retired (`is_active=false`)
276+ account is refused. `line_flows` sets the cash flow row of the named lines in place, on a posted
277+ entry too, closed month included, since a flow moves no balance; the lines on the other side of the
278+ entry follow when that side carries one flow. Posted entries accept nothing else and are corrected
279+ via `create-event-block(event_type='journal_entry_reversed')`.
263280
264281 **Idempotency**: supply an `Idempotency-Key` header to make safe retries; replays within 24 hours
265282 return the same envelope. Reusing the key with a different body returns HTTP 409 Conflict.
266283
267284 Args:
268285 graph_id (str):
269286 idempotency_key (None | str | Unset):
270- body (UpdateJournalEntryRequest): Update a draft journal entry. Posted entries cannot be
271- updated —
272- create a reversal and a corrected entry instead.
287+ body (UpdateJournalEntryRequest): Update a draft journal entry, or re-tag any entry's
288+ flows.
289+
290+ Posted entries accept only `line_flows`: a flow moves no balance, so it
291+ changes in place, closed month or not. Anything else on a posted entry is
292+ a reversal and a corrected entry.
273293
274294 Omitted fields are left unchanged. If `line_items` is provided, the
275295 existing line items are replaced entirely (atomic delete + insert)
0 commit comments