Creates or updates a query ruleset Added in 8.10.0

POST /_query_rules/{ruleset_id}/_test

Path parameters

  • ruleset_id string Required

    The unique identifier of the query ruleset to be created or updated

application/json

Body Required

  • match_criteria object Required
    Hide match_criteria attribute Show match_criteria attribute object
    • * object Additional properties

      Additional properties are allowed.

Responses

POST /_query_rules/{ruleset_id}/_test
curl \
 -X POST http://api.example.com/_query_rules/{ruleset_id}/_test \
 -H "Content-Type: application/json" \
 -d '{"match_criteria":{"additionalProperty1":{},"additionalProperty2":{}}}'