Update API url to the new endpoint