Updates API endpoint detection.