younifyd
Menu

Retrieve refined collection

Retrieve refined collection

GET/v1/refined_collections/{collection_id}

Use it in a workflow

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

Request

Path parameters

collection_idstringrequired

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`.

filter_names_to_excludearray<string>

A list of filter names to exclude from results.

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_atlast_updated_internallylast_updated_externallyDefault "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`.

segmentsany

Filtering conditions by segment type

filterobject

A list of filters to retrieve

Response

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

refined_collectionsarray<oneOf>
total_countinteger
json
{
  "refined_collections": [
    null
  ],
  "total_count": 0
}

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