Skip to content

Commit 532b604

Browse files
[Backport 8.19] Add format query option to esql.async_query_get endpoint (#4687)
* Add `format` query option to `esql.async_query_get` endpoint (#4685) (cherry picked from commit d5db0ed) * fix import for 8.x --------- Co-authored-by: Miguel Grinberg <[email protected]>
1 parent 0efbcef commit 532b604

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

specification/esql/async_query_get/AsyncQueryGetRequest.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import { RequestBase } from '@_types/Base'
2121
import { Id } from '@_types/common'
2222
import { Duration } from '@_types/Time'
23+
import { EsqlFormat } from '@esql/query/QueryParameters'
2324

2425
/**
2526
* Get async ES|QL query results.
@@ -46,6 +47,10 @@ export interface Request extends RequestBase {
4647
* @server_default false
4748
*/
4849
drop_null_columns?: boolean
50+
/**
51+
* A short version of the Accept header, for example `json` or `yaml`.
52+
*/
53+
format?: EsqlFormat
4954
/**
5055
* The period for which the query and its results are stored in the cluster.
5156
* When this period expires, the query and its results are deleted, even if the query is still ongoing.

0 commit comments

Comments
 (0)