Recommend API
Create or update a batch of Recommend Rules
Create or update a batch of Recommend Rules.
POST
curl
Each Recommend Rule is created or updated, depending on whether a Recommend Rule with the same
objectID already exists.
You may also specify true for clearExistingRules, in which case the batch will atomically replace all the existing Recommend Rules.
Recommend Rules are similar to Search Rules, except that the conditions and consequences apply to a source item instead of a query. The main differences are the following:
- Conditions
patternandanchoringare unavailable. - Condition
filterstriggers if the source item matches the specified filters. - Condition
filtersaccepts numeric filters. - Consequence
paramsonly covers filtering parameters. - Consequence
automaticFacetFiltersdoesn’t require a facet value placeholder (it tries to match the data source item’s attributes instead).
trending-items model differ:
- Condition
filtersand consequenceautomaticFacetFiltersare unavailable. - Condition
requestScopeapplies the rule to requests without a facet, or to requests for a specific facet.
editSettingsAuthorizations
Path Parameters
Available options:
related-products, bought-together, trending-items, looking-similar Body
application/json
Response
OK
Response, taskID, and update timestamp.
Unique identifier of a task.
A successful API response means that a task was added to a queue.
It might not run immediately.
You can check the task's progress with the task operation and this task ID.
Example:
1514562690001
Last modified on November 17, 2026