update rating api