Updates to use the correct API endpoint