Skip to content

Commit 88a63b1

Browse files
authored
Add a format explicit example
1 parent f5293c0 commit 88a63b1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

explore-analyze/query-filter/languages/esql-rest.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,12 @@ POST /_query?format=txt
6060

6161
{{esql}} can return the data in the following human readable and binary formats. You can set the format by specifying the `format` parameter in the URL or by setting the `Accept` or `Content-Type` HTTP header.
6262

63+
For example:
64+
65+
```console
66+
POST /_query?format=yaml
67+
```
68+
6369
::::{note}
6470
The URL parameter takes precedence over the HTTP headers. If neither is specified then the response is returned in the same format as the request.
6571
::::

0 commit comments

Comments
 (0)