How to exclude domains in the Houndify API?

66 Views Asked by At

How can i exclude Domains in the Houndify API? In the RequestInfoJSON documentation is a field called domains to "omit some domains when doing a request". However there is no format specified.

By analysing the SDK i discover the following structure:

"Domains": {
   "Exclude": {
      "DomainNames": ["weather"]
   }
}

However, no matter which domain name i put into the array the domain will be executed. (By using the "only" functionality i got a NoResultCommand.) Disabling the domains in the dashboard is no option for me.

1

There are 1 best solutions below

1
yamakei On

Here is the doc explaining "Domains" parameter.

Specifying following value to "Domains" parameter as part of request header in API tester seems to have successfully suppressed "Wikipedia" domain to be invoked:

{"Exclude": {"DomainNames": ["Wikipedia"]}}