Skip to content

Commit 77bb387

Browse files
authored
[DOCS] Move JSON encoding section (#71508) (#71534)
1 parent 5c5e98b commit 77bb387

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/reference/api-conventions.asciidoc

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
[[api-conventions]]
22
== API conventions
33

4-
The {es} REST APIs are exposed using JSON over HTTP. The JSON request body must
5-
be UTF-8 encoded. {es} ignores any other encoding headings sent with a request.
6-
Responses are also UTF-8 encoded.
4+
The {es} REST APIs are exposed over HTTP.
75

86
The conventions listed in this chapter can be applied throughout the REST
97
API, unless otherwise specified.
@@ -685,17 +683,19 @@ should also be passed with a media type value that indicates the format
685683
of the source, such as `application/json`.
686684

687685
[discrete]
688-
==== Content-Type Requirements
686+
==== Content-type requirements
689687

690688
The type of the content sent in a request body must be specified using
691689
the `Content-Type` header. The value of this header must map to one of
692690
the supported formats that the API supports. Most APIs support JSON,
693691
YAML, CBOR, and SMILE. The bulk and multi-search APIs support NDJSON,
694692
JSON, and SMILE; other types will result in an error response.
695693

696-
Additionally, when using the `source` query string parameter, the
697-
content type must be specified using the `source_content_type` query
698-
string parameter.
694+
When using the `source` query string parameter, the content type must be
695+
specified using the `source_content_type` query string parameter.
696+
697+
{es} only supports UTF-8-encoded JSON. {es} ignores any other encoding headings
698+
sent with a request. Responses are also UTF-8 encoded.
699699

700700
[[url-access-control]]
701701
=== URL-based access control

0 commit comments

Comments
 (0)