update valid-pitch api