younifyd
Menu

Validate Result Ranking Operation

Validate a single result ranking operation.

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

Use it in a workflow

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

operationoneOfrequired
json
{
  "operation": null
}

Response

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

resultobject
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
{
  "result": {
    "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.