Update api endpoints.