Updating url to api