Fixed a syntax error from the recent API endpoint rename.