younifyd
Menu

Retrieve refined filter rules

Retrieve refined filter rules

GET/v1/refined_filters/{filter_name}/{filter_value}/rules

Use it in a workflow

  1. Add a step and choose the Constructor connector.
  2. Pick the Retrieve refined filter rules action (under Refined Filters).
  3. Fill in the fields below, then reference the result from later steps as {{retrieveRefinedFilterRules.response.data}}.

Request

Path parameters

filter_namestringrequired
filter_valuestringrequired

Query parameters

response_sectionany

The section of the response to apply rules to, such as `results` or `facets`.

Default "results"

sectionstring

The section of the index to use. Defaults to `Products`.

filtersobject
facet_group_namestring

The name of the facet group to filter by.

targetany

The target type of the facet rule.

num_results_per_pageinteger

The number of results per page to return.

Default 20

pageinteger

The page of results to return.

offsetinteger

The number of results to skip from the beginning. Cannot be used together with `page`.

sort_bystring

The attribute to sort by.

One ofidcreated_atupdated_atDefault "id"

sort_orderany

The order by which results should be sorted. Only valid in conjunction with `sort_by`.

Default "ascending"

cstring

The ID of the client and version that the request is coming from, such as `cio-js-2.90`.

Response

Returns 200 with an object. Read it in later steps with {{retrieveRefinedFilterRules.response.data.<field>}}.

refined_filter_rulesarray<oneOf>
total_countinteger
json
{
  "refined_filter_rules": [
    null
  ],
  "total_count": 0
}

Need more? See the Constructor guide for connection setup and behaviour shared by every action.