younifyd
Menu

Validate Result Ranking Operations

Validate a batch of result ranking operations.

POST/rest/search/v2/admin/pipelines/{pipelineId}/resultRankings/validate/batch

Use it in a workflow

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

operationsarray<oneOf>required

A list of operations to validate.

json
{
  "operations": [
    null
  ]
}

Response

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

resultsarray<object>

The list of operation validation results.

operationTypestringrequired

The type of operation that has been validated.

operationValidbooleanrequired

Whether the operation to validate was successful or not.

resourceIdstring

The identifier of the resource.

validationErrorsobject

If the operation failed, the `validationError` will contains the error message.

json
{
  "results": [
    {
      "operationType": "CREATE",
      "operationValid": true,
      "resourceId": "id",
      "validationErrors": "Access Denied. You don't have the required privileges to perform  this operation."
    }
  ]
}

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

Validate Result Ranking Operations — Coveo — Documentation