younifyd
Menu

Validate Pipeline Condition Operations

Validate batch of pipeline condition operations.

POST/rest/search/v1/admin/pipelines/statements/validate/batch

Use it in a workflow

  1. Add a step and choose the Coveo connector.
  2. Pick the Validate Pipeline Condition Operations action (under Search).
  3. Fill in the fields below, then reference the result from later steps as {{validatePipelineConditionOperations.response.data}}.

Request

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<object>required

A list of operations to validate.

modelobject2 fields
operationTypestringrequired

The type of operation to validate. Each operation type has specific validation rules. Additional request parameters are required based on the type of operation to validate: - `CREATE`: You must provide a `model`. - `UPDATE`: You must provide a `model` and a `resourceId`. - `DELETE`: You must provide a `resourceId`.

One ofCREATEUPDATEDELETE

resourceIdstring

The identifier of the resource.

json
{
  "operations": [
    {
      "model": {},
      "operationType": "CREATE"
    },
    {
      "model": {},
      "operationType": "UPDATE",
      "resourceId": "resource-id"
    },
    {
      "operationType": "DELETE",
      "resourceId": "resource-id"
    }
  ]
}

Response

Returns 200 with an object. Read it in later steps with {{validatePipelineConditionOperations.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 Pipeline Condition Operations — Coveo — Documentation