younifyd
Menu

Update 1

Update query configuration for a solution

PUT/rest/organizations/{organizationId}/commerce/v2/configurations/query

Use it in a workflow

  1. Add a step and choose the Coveo connector.
  2. Pick the Update 1 action (under Commerce).
  3. Fill in the fields below, then reference the result from later steps as {{update1.response.data}}.

Request

Path parameters

organizationIdstringrequired

The unique identifier of the target [organization](https://docs.coveo.com/en/185/).<br />**Example:** `acmecorporation8tp8wu3`

Request body

Enter the body as JSON in the step's Body field.

configurationModelobjectrequired

Query configuration.

additionalFieldsarray<string>

To retrieve [additional fields](https://docs.coveo.com/en/n73f0502#create-additional-commerce-fields) you have created, that aren’t part of the [standard commerce fields](https://docs.coveo.com/en/n73f0502#standard-commerce-fields), specify them here. These fields appear in the `additionalFields` object in the response.

facetsobject3 fields

DEPRECATED ON 2026-08-31: The facet request configuration. See https://docs.coveo.com/en/q3cc0299/deprecations/legacy-commerce-api-facet-management-deprecation for more details on the deprecation.

groupingobject1 fields

The product grouping. Determines if pin rules should consider results to be grouped on the query pipeline, or not.

numberOfChildreninteger (int32)

Equivalent to `filterFieldRange` in the Search API. The maximum number of items to include in the childResults array of a folded query result (see SearchAPI's doc for more details).

perPageinteger (int32)

The number of results to include per page.<br/><br/><b>Note:</b> The specified value applies only to parent items, not their grouped children. Query performance may be affected when returned items include many grouped products.

sortsarray<oneOf>

Determines the order in which to retrieve the results.

isGlobalboolean

Whether the query configuration is globally applied.

Default false

solutionTypestringrequired

The solution type for the rule. It can be either 'listing' or 'search' or 'recommendations'.

One oflistingsearchrecommendation

targetsarray<string>

List of target identifiers e.g. listing page name, slot ID

trackingIdstringrequired

The unique identifier of the tracking target.

json
{
  "configurationModel": {
    "additionalFields": [
      "color",
      "shirtsize"
    ],
    "facets": {
      "enableIndexFacetOrdering": false,
      "facets": [
        null
      ],
      "freezeFacetOrder": false
    },
    "grouping": {
      "type": "none"
    },
    "numberOfChildren": 0,
    "perPage": 20,
    "sorts": [
      {
        "fields": [
          {
            "direction": "asc",
            "displayNames": [
              {
                "language": "en",
                "value": "Price"
              },
              {
                "language": "fr",
                "value": "Prix"
              }
            ],
            "field": "ec_price"
          }
        ],
        "sortCriteria": "fields"
      }
    ]
  },
  "solutionType": "listing",
  "trackingId": "acmecorporation_ca",
  "isGlobal": false,
  "targets": [
    "Surf With Us This Year"
  ]
}

Response

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

additionalFieldsarray<string>

To retrieve [additional fields](https://docs.coveo.com/en/n73f0502#create-additional-commerce-fields) you have created, that aren’t part of the [standard commerce fields](https://docs.coveo.com/en/n73f0502#standard-commerce-fields), specify them here. These fields appear in the `additionalFields` object in the response.

facetsobject

DEPRECATED ON 2026-08-31: The facet request configuration. See https://docs.coveo.com/en/q3cc0299/deprecations/legacy-commerce-api-facet-management-deprecation for more details on the deprecation.

enableIndexFacetOrderingboolean

Default: `true`<br/>Whether to take into account the scores generated by the index when reordering facets.<br/><br/><b>Note:</b> Setting this to `false` implies that only the scores generated by a Coveo ML DNE model will be taken into account when automatically reordering facets. To completely disable automatic facet reordering, set `freezeFacetOrder` to `true` instead.

facetsarray<oneOf>

The facet operations to perform on the listing query.

freezeFacetOrderboolean

Default: `false`<br/>Whether facets should be returned in the same order in which they were requested.<br/><br/><b>Note:</b> Setting this to `true` completely disables automatic facet reordering. To allow automatic facet reordering, but only take into account the scores generated by a Coveo ML DNE model, set `enableIndexFacetOrdering` to `false` instead.

groupingobject

The product grouping. Determines if pin rules should consider results to be grouped on the query pipeline, or not.

typestringrequired

The product grouping. Determines if pin rules should consider results to be grouped on the query pipeline, or not.

One ofnonequery_pipeline

numberOfChildreninteger (int32)

Equivalent to `filterFieldRange` in the Search API. The maximum number of items to include in the childResults array of a folded query result (see SearchAPI's doc for more details).

perPageinteger (int32)

The number of results to include per page.<br/><br/><b>Note:</b> The specified value applies only to parent items, not their grouped children. Query performance may be affected when returned items include many grouped products.

sortsarray<oneOf>

Determines the order in which to retrieve the results.

json
{
  "additionalFields": [
    "color",
    "shirtsize"
  ],
  "facets": {
    "enableIndexFacetOrdering": false,
    "facets": [
      null
    ],
    "freezeFacetOrder": false
  },
  "grouping": {
    "type": "none"
  },
  "numberOfChildren": 0,
  "perPage": 20,
  "sorts": [
    {
      "fields": [
        {
          "direction": "asc",
          "displayNames": [
            {
              "language": "en",
              "value": "Price"
            },
            {
              "language": "fr",
              "value": "Prix"
            }
          ],
          "field": "ec_price"
        }
      ],
      "sortCriteria": "fields"
    }
  ]
}

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

Was this page helpful?