updating api endpoints