Elastic · OpenAPI Overlay 1.0.0
API Evangelist conversational phrasing for Elasticsearch Query Rules API
9 actions
9 updates
phrasing
extends
openapi/elastic-query-rules-api-openapi.yml
Generated by API Evangelist
Written by API Evangelist tooling for Elastic's API. It is a proposal applied on top of the contract, not a document Elastic publishes.
What the actions change
x-apievangelist-phrasing
Targets 9
$.info
$.paths['/_query_rules/{ruleset_id}/_rule/{rule_id}'].get
$.paths['/_query_rules/{ruleset_id}/_rule/{rule_id}'].put
$.paths['/_query_rules/{ruleset_id}/_rule/{rule_id}'].delete
$.paths['/_query_rules/{ruleset_id}'].get
$.paths['/_query_rules/{ruleset_id}'].put
$.paths['/_query_rules/{ruleset_id}'].delete
$.paths['/_query_rules'].get
$.paths['/_query_rules/{ruleset_id}/_test'].post
OpenAPI Overlay
# Generated by API Evangelist (build-phrasing.py). Our phrasing, not observed demand.
overlay: 1.0.0
info:
title: API Evangelist conversational phrasing for Elasticsearch Query Rules API
version: 1.0.0
extends: openapi/elastic-query-rules-api-openapi.yml
actions:
- target: $.info
update:
x-apievangelist-phrasing:
method: generated
generated: '2026-11-17'
generator: build-phrasing.py
label: Generated by API Evangelist
operations: 8
- target: $.paths['/_query_rules/{ruleset_id}/_rule/{rule_id}'].get
update:
x-apievangelist-phrasing:
intent: Get a query rule
effect: read
questions:
- What criteria and actions does one rule in my ruleset have?
- Can I inspect a single query rule inside a ruleset?
instructions:
- text: Show rule {rule_id} in ruleset {ruleset_id}.
slots:
rule_id: path.rule_id
ruleset_id: path.ruleset_id
- text: Get the criteria of query rule {rule_id} from {ruleset_id}.
slots:
rule_id: path.rule_id
ruleset_id: path.ruleset_id
method: generated
generated: '2026-11-17'
- target: $.paths['/_query_rules/{ruleset_id}/_rule/{rule_id}'].put
update:
x-apievangelist-phrasing:
intent: Create or update a query rule
effect: write
questions:
- How do I pin specific documents to the top for certain searches?
- Can I exclude documents when a query matches some criteria?
instructions:
- text: Add rule {rule_id} of type {type} to ruleset {ruleset_id} with criteria {criteria} and actions {actions}.
slots:
rule_id: path.rule_id
type: requestBody.type
ruleset_id: path.ruleset_id
criteria: requestBody.criteria
actions: requestBody.actions
- text: Update rule {rule_id} in {ruleset_id} to priority {priority}, type {type}, criteria {criteria}, actions {actions}.
slots:
rule_id: path.rule_id
ruleset_id: path.ruleset_id
priority: requestBody.priority
type: requestBody.type
criteria: requestBody.criteria
actions: requestBody.actions
method: generated
generated: '2026-11-17'
- target: $.paths['/_query_rules/{ruleset_id}/_rule/{rule_id}'].delete
update:
x-apievangelist-phrasing:
intent: Delete a query rule
effect: destructive
questions:
- How do I remove one rule without deleting the whole ruleset?
- Is deleting a query rule reversible?
instructions:
- text: Delete rule {rule_id} from ruleset {ruleset_id}.
slots:
rule_id: path.rule_id
ruleset_id: path.ruleset_id
- text: Remove query rule {rule_id} in {ruleset_id}.
slots:
rule_id: path.rule_id
ruleset_id: path.ruleset_id
method: generated
generated: '2026-11-17'
- target: $.paths['/_query_rules/{ruleset_id}'].get
update:
x-apievangelist-phrasing:
intent: Get a query ruleset
effect: read
questions:
- Which rules does a particular query ruleset contain?
- What does a full ruleset definition look like?
instructions:
- text: Show query ruleset {ruleset_id}.
slots:
ruleset_id: path.ruleset_id
- text: List the rules inside ruleset {ruleset_id}.
slots:
ruleset_id: path.ruleset_id
method: generated
generated: '2026-11-17'
- target: $.paths['/_query_rules/{ruleset_id}'].put
update:
x-apievangelist-phrasing:
intent: Create or replace a query ruleset
effect: write
questions:
- How many rules can one query ruleset hold?
- Can I define a whole set of pinning rules in one request?
instructions:
- text: Create ruleset {ruleset_id} with rules {rules}.
slots:
ruleset_id: path.ruleset_id
rules: requestBody.rules
- text: Replace every rule in ruleset {ruleset_id} with {rules}.
slots:
ruleset_id: path.ruleset_id
rules: requestBody.rules
method: generated
generated: '2026-11-17'
- target: $.paths['/_query_rules/{ruleset_id}'].delete
update:
x-apievangelist-phrasing:
intent: Delete a query ruleset
effect: destructive
questions:
- How do I remove a query ruleset and all its rules?
- Can a deleted ruleset be recovered?
instructions:
- text: Delete query ruleset {ruleset_id}.
slots:
ruleset_id: path.ruleset_id
- text: Remove ruleset {ruleset_id} and every rule in it.
slots:
ruleset_id: path.ruleset_id
method: generated
generated: '2026-11-17'
- target: $.paths['/_query_rules'].get
update:
x-apievangelist-phrasing:
intent: List query rulesets
effect: read
questions:
- Which query rulesets have I defined?
- Can I page through rulesets with from and size?
instructions:
- text: List my query rulesets.
- text: Show {size} query rulesets starting at {from}.
slots:
size: query.size
from: query.from
method: generated
generated: '2026-11-17'
- target: $.paths['/_query_rules/{ruleset_id}/_test'].post
update:
x-apievangelist-phrasing:
intent: Test which rules match criteria
effect: read
questions:
- Which rules in a ruleset would fire for a given user query?
- Can I check rule matches before running a real search?
instructions:
- text: Test ruleset {ruleset_id} against {match_criteria}.
slots:
ruleset_id: path.ruleset_id
match_criteria: requestBody.match_criteria
- text: Find rules in {ruleset_id} that match criteria {match_criteria}.
slots:
ruleset_id: path.ruleset_id
match_criteria: requestBody.match_criteria
method: generated
generated: '2026-11-17'
Work with this as data
Every overlay here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for openapi overlays
4 MCP tools reach this
find_overlaysBrowse and filter every overlay in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This overlay
curl "https://apis.io/api/v1/overlays/elastic-query-rules-api-phrasing-overlay"
All openapi overlays
curl "https://apis.io/api/v1/overlays?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.