Hi @Santeri
Good question.
You’d first need to find the invoice to get the existing Invoice Line Items, then use logic to combine the new line items with the existing line items before updating so that all line items (old + new) are sent as part of the update.
QBO API - Full Update An Invoice
https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/invoice#full-update-an-invoice
Use this operation to update any of the writable fields of an existing invoice object. The request body must include all writable fields of the existing object as returned in a read response. Writable fields omitted from the request body are set to NULL. The ID of the object to update is specified in the request body.