Updated the API endpoint.