younifyd
Menu

Create Statement Group

Create a new statement group

POST/rest/search/v2/admin/pipelines/{pipelineId}/statementGroups

Use it in a workflow

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

Request

Path parameters

pipelineIdstringrequired

The unique identifier of the target query pipeline.

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.

Response

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

campaignEndstring

The end date of the campaign.

campaignStartstring

The start date of the campaign.

conditionIdstring

The condition that must be met by a query in order to route that query through this query pipeline. Typically, each query pipeline except the default one should have a condition, and you should ensure that the conditions you set on query pipelines are mutually exclusive. **Note:** A query cannot be routed through a query pipeline that does not have a condition unless: - That query pipeline is set as the default query pipeline (see the `isDefault` property), or - That query pipeline is enforced through the `pipeline` parameter of the query itself, in which case the query pipeline condition is bypassed.

descriptionstring

The intended purpose of this statement group.

idstring

The unique identifier of the statement group.

isActiveboolean

The start date of the campaign.

namestring

The name of the statement group.

typestring

The type name of the statement group.

One ofcampaignpermanent

json
{
  "id": "679adb80-444e-11ea-b77f-2e728ce88125",
  "name": "Community",
  "type": "campaign",
  "campaignEnd": "2002-09-07T10:07:20",
  "campaignStart": "2001-07-20T23:01:05",
  "conditionId": "string",
  "description": "Provide contextually relevant query recommendations/results to Community site users.",
  "isActive": false
}

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

Create Statement Group — Coveo — Documentation