Updating and adding API and legacy API endpoints