younifyd
Menu

Copy Result Ranking Rule

Copy result rankings rules to a pipeline.

POST/rest/search/v2/admin/pipelines/{pipelineId}/resultRankings/copy

Use it in a workflow

  1. Add a step and choose the Coveo connector.
  2. Pick the Copy Result Ranking Rule action (under Search).
  3. Fill in the fields below, then reference the result from later steps as {{copyResultRankingRule.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.

Request body

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

destinationPipelineIdstringrequired

The unique identifier of the query pipeline to copy the statements to.

resultRankingIdsarray<string>required

The unique identifiers of the result ranking rules to copy.

json
{
  "destinationPipelineId": "120deecf-7822-4d7b-885f-53f184a3a76",
  "resultRankingIds": [
    "4f0a9531-4fab-45fd-a1e3-eb07a5aceccb"
  ]
}

Response

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

resultRankingsarray<object>
idstringrequired

The identifier of the result ranking rule

resultRankingoneOfrequired
json
{
  "resultRankings": [
    {
      "id": "string",
      "resultRanking": null
    }
  ]
}

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

Copy Result Ranking Rule — Coveo — Documentation