Corrects API endpoint