Update api endpoints