younifyd
Menu

Create Condition

Create condition statement

POST/rest/search/v1/admin/pipelines/statements

Use it in a workflow

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

Request

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 201 with a any. Read it in later steps with {{createCondition.response.data.<field>}}.

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