Updating a cart via the API is not supported. If an update needs to be made, you can create a new cart and send that to your customers. If you need to invalidate the old cart, use the /expire endpoint.