younifyd
Menu

List Query Pipelines V1

List query pipelines

GET/rest/search/v1/admin/pipelines

Use it in a workflow

  1. Add a step and choose the Coveo connector.
  2. Pick the List Query Pipelines V1 action (under Search).
  3. Fill in the fields below, then reference the result from later steps as {{listQueryPipelinesV1.response.data}}.

Request

Query parameters

isOrderAscendingboolean

Whether to sort the results in ascending order.

Default true

filterstring

The query filter to match. This allows you to search within query pipeline statement definitions and descriptions. By default, results are not required to match a specific query filter.

sortBystring

The sort criteria to apply on the results. **Allowed values:** `definition`, `description`, and `position`. **Default:** `position`

pageinteger (int32)

The 0-based number of the page of results to get.

Default 0

excludeAbTestTargetsboolean

Whether to exclude the A/B test targets from the result.

Default false

perPageinteger (int32)

The number of results to include per page.

Default 20

organizationIdstring

The unique identifier of the target Coveo Cloud organization. Specifying a value for this parameter is only necessary when you are authenticating the API call with an OAuth2 token.

enablePaginationboolean

Whether to receive the pipelines in a paginated format.

Response

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

itemsarray<object>
aduiConfigobject1 fields
conditionany
created_bystring

The identifier of the Coveo Cloud platform user who originally created this query pipeline.

descriptionstring

The intended purpose of this query pipeline.

filterstring

A constant query expression to add to all queries routed through this query pipeline. **Notes:** - The `filter` expression is added to the constant part of the query expression (`cq`) using an AND operator. - Avoid including dynamically evaluated values in the `filter` expression, otherwise you risk filling up the cache with useless data.

idstringrequired

The unique identifier of this query pipeline.

interfaceUrlsarray<object>1 fields

This option helps better understand the pages where this query pipeline is intended to be used. It won't affect query routing in any way but may be used by Coveo to help you manage your configuration properly.

isDefaultbooleanrequired

Whether this query pipeline is the default query pipeline. **Note:** There must be one and only one default query pipeline in a Coveo Cloud organization. Therefore, setting `isDefault` to `true` on this query pipeline will automatically set it to `false` in the current default query pipeline as a side effect (assuming, of course, that this query pipeline is not the current default query pipeline).

last_modified_bystring

The identifier of the Coveo Cloud platform user who last modified this query pipeline.

modifiedAtstring (date-time)

The last time this was modified.

modifiedBystring

The identifier of the Coveo Cloud platform user who last modified this.

namestringrequired

Community

positioninteger (int32)required

The 0-based position of this query pipeline relative to other query pipelines in this Coveo Cloud organization. Upon query pipeline creation, a position corresponding to the current highest query pipeline position incremented by one is automatically assigned to the new query pipeline. You cannot change the position of an existing query pipeline, but you can duplicate/delete query pipelines to achieve a similar result. Note, however, that duplicated query pipelines have distinct `id` values. Unless a query enforces a specific query pipeline, query pipeline *with conditions* are evaluated sequentially, according to their respective position (from lowest to highest). The query is routed through the first query pipeline whose condition it satisfies. If the query satisfies the condition of no query pipeline, it is routed through the default query pipeline (bypassing its condition, if it has one).

splitTestEnabledboolean

Whether to enable the A/B test. See also the `splitTestName`, `splitTestTarget`, and `splitTestRatio` properties.

splitTestNamestring

A name which summarizes the intended purpose of the A/B test. See also the `splitTestTarget`, `splitTestRatio`, and `splitTestEnabled` properties.

splitTestRationumber (double)

The percentage of queries to route through query pipeline B if the A/B test is enabled. Remaining queries will be routed through this query pipeline. See also the `splitTestName`, `splitTestTarget`, and `splitTestEnabled` properties.

splitTestStartTimestring (date-time)

The date and time when the A/B test was first started.

splitTestTargetstring

The unique identifier of query pipeline B in the A/B test. See also the `splitTestName`, `splitTestRatio`, and `splitTestEnabled` properties.

useCasestring

The use case for which this query pipeline should apply. This option allows you to categorize your query pipeline and enables Coveo to provide better support and improve the tools we provide.

totalEntriesinteger (int32)

The total number of pipelines matching the listing parameters.

json
{
  "items": [
    {
      "id": "120deecf-7822-4d7b-885f-53f184a3a76c",
      "isDefault": false,
      "name": "Community",
      "position": 3,
      "aduiConfig": {
        "tooltipsDismissed": [
          {
            "id": "string"
          }
        ]
      },
      "condition": null,
      "created_by": "asmith@example.com",
      "description": "Provide contextually relevant query recommendations/results to Community site users.",
      "filter": "@source==CommunityForum OR @source==CommunityDocumentation",
      "interfaceUrls": [
        {
          "url": "www.acme.com"
        }
      ],
      "last_modified_by": "bjones@example.com",
      "modifiedAt": "2021-02-16T15:15:17Z"
    }
  ],
  "totalEntries": 0
}

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