{
  "esql.query": {
    "documentation": {
      "url": "https://www.elastic.co/guide/en/elasticsearch/reference/8.19/esql-rest.html",
      "description": "Run an ES|QL query"
    },
    "stability": "stable",
    "visibility": "public",
    "headers": {
      "accept": [
        "application/json"
      ],
      "content_type": [
        "application/json"
      ]
    },
    "url": {
      "paths": [
        {
          "path": "/_query",
          "methods": [
            "POST"
          ]
        }
      ]
    },
    "params": {
      "format": {
        "type": "enum",
        "description": "A short version of the Accept header, e.g. json, yaml.\n\n`csv`, `tsv`, and `txt` formats will return results in a tabular format, excluding other metadata fields from the response.",
        "options": [
          "csv",
          "json",
          "tsv",
          "txt",
          "yaml",
          "cbor",
          "smile",
          "arrow"
        ]
      },
      "delimiter": {
        "type": "string",
        "description": "The character to use between values within a CSV row. Only valid for the csv format.",
        "default": ","
      },
      "drop_null_columns": {
        "type": "boolean",
        "description": "Should entirely null columns be removed from the results? Their name and type will be returning in a new `all_columns` section.",
        "default": false
      },
      "allow_partial_results": {
        "type": "boolean",
        "description": "If `true`, partial results will be returned if there are shard failures, but\nthe query can continue to execute on other clusters and shards.\nIf `false`, the entire query will fail if there are\nany failures.",
        "default": true
      }
    },
    "body": {
      "description": "Use the `query` element to start a query. Use `columnar` to format the answer.",
      "required": true
    }
  }
}
