Mutate quote line items in a batch
Adds, updates, removes, and reorders the quote's line items in a single atomic diff, then returns the full quote with recomputed totals and the updated line_items array. The top-level quote PATCH is metadata-only; all line-item mutation flows through this endpoint. Identical wire shape to the worksheet batch endpoint.
Operations (all arrays optional; empty body is a no-op): add, update (full replace by id), remove (by id), reorder. An id may appear in at most one of remove/update/reorder. As with worksheets, update is a remove+add internally so an updated line receives a NEW id; tax_rate is resolved server-side from vat_code.
Quotes are estimates — there is no invoice-freeze rule and article references on lines do not move inventory stock (they are validated for ownership only).
Request
- Base URL: https://api.officina.it
- URL: https://api.officina.it/v1/quotes/{id}/line-items/batch
- Auth: HTTP bearer
Request body
Response
Batch applied. Returns the updated quote (with line_items).
Changes
No recorded changes to this operation across all 1 revision of this API.