update stat api