Updated api and endpoint settings