Remove Blacklist Terms

  • To remove a multi-term blacklist rule, you must refer to all the terms constituting the multi-term rule.

Example: If a user previously added a multi-term blacklist rule ["cats", "bite", "scratch"], removing the multi-term rule ["cats", "bite"] and ["cats", "bite", "scratch", "hiss"] would not remove the ["cats", "bite", "scratch"] rule from the blacklist.

  • To remove a multi-term blacklist rule, you may refer to the terms in any order.

Example: If a user previously added a multi-term blacklist rule ["cats", "bite", "scratch"], you could remove this rule by deleting ["bite", "scratch", "cats"]

Remove terms from the blacklist
curl -X DELETE -H "Content-Type: application/json" \
-d '{"blacklist_terms": ["cats","snakes","bees"]}' \
-u"[your token]:" "https://ac.cnstrc.com/v1/blacklist_autosuggest_terms?key=[your API key]"
Remove sets of terms (multi-term rules) from blacklist
curl -X DELETE -H "Content-Type: application/json" \
-d '{"blacklist_terms": [["cats","bite","scratch"],["bees","sting"]]}' \
-u"[your token]:" "https://ac.cnstrc.com/v1/blacklist_autosuggest_terms?key=[your API key]"
info

The above command returns a 204 Success response on success. For simplicity sake, a 204 Success response will be returned even if some or all items don't exist.

HTTP Request#

DELETE https://ac.cnstrc.com/v1/blacklist_autosuggest_terms?key=[your API key]

JSON Parameters#

ParameterRequired?Description
blacklist_termsYesThe term(s) or set(s) of terms to remove from the blacklist.