update card api