update url for API