Patching rules will only change those rules that are specified in the request.
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.
PATCH https://ac.cnstrc.com/v1/refined_collections/[collection_id]?key=[your index key]§ion=[section]
|collection_id||The id of the collection you'd like to patch searchandizing rules for.|
|section||Yes||The index section you'd like to searchandize collections within (typically |
|slot_rules||With slot rules, you can add an item to recall and pin it to a particular position. Provide |
|boost_rules||Boost or bury the score (and in turn, ranking) of matching items.|
|whitelist_rule||Restrict recall to only the matching items.|
|blacklist_rules||Remove matching items from recall.|
|rule||Yes||Rules can accept an object of the various rule specs as shown in the above JSON example.|
|active||No||Your searchandizing rules can be defined but set to inactive if you wish by setting |
|start_time||No||Start time of when the searchandizing rule should be enabled.|
|end_time||No||End time of when the searchandizing rule should be disabled.|