update url base for api