Fix bug in upsertList request body generation