PATCH /dynamic-search-rules/{uid}. The uid comes from the path, and omitted fields remain unchanged when you update an existing rule.
How do I pin one result for a query?
Pin a document whenever the query contains a specific substring:How do I pin several results in a fixed order?
Add multiple actions with explicit positions:How do I curate the default results for an empty query?
Use theisEmpty query condition to curate the browse state when users search with an empty query:
How do I schedule a promotion for a limited time?
Combine a query condition with a time condition:AND, so this rule only applies during the campaign window and only when the query contains summer sale.
How do I list active rules or rules with similar UIDs?
UsePOST /dynamic-search-rules with pagination and filters:
attributePatterns uses attribute-pattern syntax, for example promo*.
How do I pause a rule without deleting it?
Setactive to false:
DELETE /dynamic-search-rules/{uid} only when you want to remove the rule entirely.