Modifying API endpoint