Menu
Test a query ruleset
Test a query ruleset
POST
/_query_rules/{ruleset_id}/_testUse it in a workflow
- Add a step and choose the Elasticsearch connector.
- Pick the Test a query ruleset action (under query_rules).
- Fill in the fields below, then reference the result from later steps as
{{testAQueryRuleset.response.data}}.
Request
Path parameters
Request body
Enter the body as JSON in the step's Body field.
{
"match_criteria": {}
}
Response
Returns 200 with an object. Read it in later steps with {{testAQueryRuleset.response.data.<field>}}.
{
"total_matched_rules": 0,
"matched_rules": [
{
"ruleset_id": null,
"rule_id": null
}
]
}
Need more? See the Elasticsearch guide for connection setup and behaviour shared by every action.
Was this page helpful?