Menu
Validate Statement Operation V2
Validate a single statement operation.
POST
/rest/search/v2/admin/pipelines/{pipelineId}/statements/validateUse it in a workflow
- Add a step and choose the Coveo connector.
- Pick the Validate Statement Operation V2 action (under Search).
- Fill in the fields below, then reference the result from later steps as
{{validateStatementOperationV2.response.data}}.
Request
Path parameters
Query parameters
Request body
Enter the body as JSON in the step's Body field.
{
"operation": {
"operationType": "CREATE",
"model": {
"definition": "boost `coveo` by 100",
"feature": "ranking",
"description": "Spotlight the Coveo brand in query results.",
"id": "string",
"parent": "45a7892e-a63f-4c8e-8795-ab38c8c18d7e"
},
"resourceId": "id"
}
}
Response
Returns 200 with an object. Read it in later steps with {{validateStatementOperationV2.response.data.<field>}}.
{
"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.
Was this page helpful?