updating ENDPOINT for API