This fixes #7582.  I added an interface for the WebAPI call.