younifyd
Menu

Update Query Pipeline Statement V1

Update query pipeline statement

PUT/rest/search/v1/admin/pipelines/{pipelineId}/statements/{statementId}

Use it in a workflow

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

Request

Path parameters

pipelineIdstringrequired

The unique identifier of the target query pipeline.

statementIdstringrequired

The unique identifier of the target statement.

Query parameters

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.

Request body

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

definitionstringrequired

The query pipeline language expression that defines this statement (see [Query Pipeline Language (QPL)](https://docs.coveo.com/en/1449/)).

descriptionstring

The intended purpose of this statement in an actual implementation.

featurestringrequired

The query pipeline feature expressed by this statement (see [Query Pipeline Language (QPL)](https://docs.coveo.com/en/1449/)).

One offiltertriggerrankingstopthesaurustoptopClicksquerySuggestrankingweightrecommendationqueryParamOverride

idstring

The unique identifier of this statement.

parentstring

The unique identifier of the condition that must be met for this statement to apply.

json
{
  "definition": "boost `coveo` by 100",
  "feature": "ranking",
  "description": "Spotlight the Coveo brand in query results.",
  "id": "string",
  "parent": "45a7892e-a63f-4c8e-8795-ab38c8c18d7e"
}

Response

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

childrenCountinteger (int32)

> This property is exposed for backward compatibility reasons.

conditionany
definitionstring

The query pipeline language expression that defines this statement (see [Query Pipeline Language (QPL)](https://docs.coveo.com/en/1449/)).

descriptionstring

The intended purpose of this statement in an actual implementation.

detailedany
displayNamestring

The display name for this Machine Learning model. This property only has a meaning with `recommendation`, `topClicks`, and `querySuggest` statements.

featurestring

The query pipeline feature expressed by this statement (see [Query Pipeline Language (QPL)](https://docs.coveo.com/en/1449/)).

One offiltertriggerrankingstopthesaurustoptopClicksquerySuggestrankingweightrecommendationqueryParamOverride

idstring

The unique identifier of this statement.

modifiedAtstring (date-time)

The last time this was modified.

modifiedBystring

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

parentany
positioninteger (int32)

The 1-based position of this statement relative to other statements in the same query pipeline. Query pipeline statements are evaluated sequentially from the lowest to the highest position, which implies that higher-positioned statements can override or complement lower-positioned ones. **Example:** If a query pipeline contains the following statements: - `replace dog cat` (position 1) - `replace cat feline` (position 2) That pipeline will replace the keyword `dog` in a query by the keyword `feline`.

readyboolean

Whether the underlying Coveo Machine Learning model is ready. This property only has a meaning with `recommendation`, `topClicks`, and `querySuggest` statements.

statementGroupIdstring

Deprecated. Do not use.

warningsarray<string>

The warning messages that apply to this query pipeline statement.

json
{
  "childrenCount": 0,
  "definition": "boost `coveo` by 100",
  "detailed": null,
  "feature": "ranking",
  "id": "0befc717-dfd7-4962-9b85-28f5c26fd23b",
  "position": 2,
  "ready": false,
  "condition": null,
  "description": "Spotlight the Coveo brand in query results.",
  "displayName": "",
  "modifiedAt": "2021-02-16T15:15:17Z",
  "modifiedBy": "bjones@example.com"
}

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