Modify Specific Rule

curl -X PUT -H "Content-Type: application/json" \
-d '{"allow_fuzzy_matching": false}' \
-u"[your token]:" \
"https://ac.cnstrc.com/v1/refined_queries/[refined_query_id]/rules/[refined_query_rule_id]?key=[your API key]&section=Products"
info

The above command returns a 204 Success response on success. For simplicity sake, a 204 Success response will be returned even if the item already exists.

HTTP Request#

PUT https://ac.cnstrc.com/v1/refined_queries/[refined_query_id]/rules/[refined_query_rule_id]?key=[your API key]&section=[section]

info

refined_query_id can be obtained by retrieving search searchandizing rules.

The id field represents the refined_query_id for that refined query.

URL Parameters#

ParameterDescription
refined_query_idThe id of the searchandizing object (refined_query object) you'd like to modify.
refined_query_rule_idThe id of the searchandizing rule (refined_query_rule object) you'd like to modify.

JSON Parameters#

ParameterRequired?Description
sectionYesYour suggestions can have multiple sections like “Products” and “Search Suggestions”. This indicates which section this searchandizing rule is for. See your dashboard for the section names to use.
allow_fuzzy_matchingNoDefaults to TRUE. Allows you to permit fuzzy matching.