Could I added to the cart all input quantity for each variants of the product with AJAX ?

On the product page I have a table with title, price and input quantity column.


I’m trying added to cart all product variants for one call with AJAX and get: Required parameter missing or invalid: items

Could I added to the cart all input quantity for each variants of the product ?

I was trying to get an answer here: https://shopify.dev/api/ajax/reference/cart#post-cart-add-js