Add cart

i already have item in cart, when i call to api /add/cart.js it adds 1 new item to cart and previous items are lost please give me a solution