younifyd
Menu

Update Statement Groups Associations

Update the rules associated with a statement group

PUT/rest/search/v2/admin/pipelines/{pipelineId}/statementGroups/{statementGroupId}/associations

Use it in a workflow

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

Request

Path parameters

pipelineIdstringrequired

The unique identifier of the target query pipeline.

statementGroupIdstringrequired

The unique identifier of the statement group.

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.

toAddarray<object>

The rules to add to this group. If you specify a rule from another group, it will be removed from the original group and added to this one instead. **Note:** Invalid rule IDs will cause the request to fail.

featureTypestringrequired

The query pipeline feature that's enabled by this rule.

One ofresultRankings

ruleIdstringrequired

The unique identifier of the rule.

toRemovearray<object>

The rules to remove from this group. **Note:** Orphaned rules, rules that are associated with another group, and non-existent rules will be ignored.

featureTypestringrequired

The query pipeline feature that's enabled by this rule.

One ofresultRankings

ruleIdstringrequired

The unique identifier of the rule.

json
{
  "toAdd": [
    {
      "featureType": "resultRankings",
      "ruleId": "493e51a8-bc9b-462d-9534-08a0995ecd55"
    }
  ],
  "toRemove": [
    {
      "featureType": "resultRankings",
      "ruleId": "493e51a8-bc9b-462d-9534-08a0995ecd55"
    }
  ]
}

Response

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

associatedRulesarray<object>

The rules associated with this group.

featureTypestringrequired

The query pipeline feature that's enabled by this rule.

One ofresultRankings

ruleIdstringrequired

The unique identifier of the rule.

json
{
  "associatedRules": [
    {
      "featureType": "resultRankings",
      "ruleId": "493e51a8-bc9b-462d-9534-08a0995ecd55"
    }
  ]
}

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

Update Statement Groups Associations — Coveo — Documentation