Browse Source

[DOCS] Note bulk API supports `application/json` content type (#73949)

The bulk API supports a `Content-Type` header of `application/json` or
`application/x-ndjson`.

Closes #26280
James Rodewig 4 years ago
parent
commit
4ccff315ed
1 changed files with 3 additions and 3 deletions
  1. 3 3
      docs/reference/docs/bulk.asciidoc

+ 3 - 3
docs/reference/docs/bulk.asciidoc

@@ -89,9 +89,9 @@ has the same semantics as the standard delete API.
 [NOTE]
 ====
 The final line of data must end with a newline character `\n`. 
-Each newline character may be preceded by a carriage return `\r`. 
-When sending requests to the `_bulk` endpoint,
-the `Content-Type` header should be set to `application/x-ndjson`.
+Each newline character may be preceded by a carriage return `\r`.
+When sending NDJSON data to the `_bulk` endpoint, use a `Content-Type` header of
+`application/json` or `application/x-ndjson`.
 ====
 
 Because this format uses literal `\n`'s as delimiters,