younifyd
Menu

Update Condition

Update condition statement

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

Use it in a workflow

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

Request

Path parameters

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.

json
{
  "definition": "when $searchhub is \"community\"",
  "description": "If the query originates from the community site..."
}

Response

Returns 200 with a any. Read it in later steps with {{updateCondition.response.data.<field>}}.

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

Update Condition — Coveo — Documentation