Skip to main content

Add Document

Adds a JSON document to the specified data stream or index and makes it searchable. If the target is an index and the document already exists, the request updates the document and increments its version.

Parameters

ParameterDescription
ContentThe JSON document content.
Require AliasIf true, the destination must be an index alias. Defaults to false.
Target IndexName of the data stream or index to target.If the target doesn’t exist and matches the name or wildcard (*) pattern of an index template with a data_stream definition, this request creates the data stream.If the target doesn’t exist and doesn’t match a data stream template, this request creates the index.

Workflow Library Example

Add Document with Elasticsearch and Send Results Via Email

Workflow LibraryPreview this Workflow on desktop