Create or update a pipeline

  • PUT /_ingest/pipeline/{id}
Auth

Changes made using this API take effect immediately.

About ingest pipelines

Path parameters

id string required

ID of the ingest pipeline to create or update.

Query parameters

master_timeout string · default: 30s

Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.

timeout string · default: 30s

Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.

if_version number

Required version for optimistic concurrency control for pipeline updates

Request body

_meta object

Optional metadata about the ingest pipeline. May have any contents. This map is not automatically generated by Elasticsearch.

description string

Description of the ingest pipeline.

on_failure {} Processor[]

Processors to run immediately after a processor failure. Each processor supports a processor-level on_failure value. If a processor without an on_failure value fails, Elasticsearch uses this pipeline-level parameter as a fallback. The processors in this parameter run sequentially in the order specified. Elasticsearch will not attempt to run the pipeline's remaining processors.

processors {} Processor[]

Processors used to perform transformations on documents before indexing. Processors run sequentially in the order specified.

version number

Version number used by external systems to track ingest pipelines. This parameter is intended for external systems only. Elasticsearch does not use or validate pipeline version numbers.

deprecated boolean · default: false

Marks this ingest pipeline as deprecated. When a deprecated ingest pipeline is referenced as the default or final pipeline when creating or updating a non-deprecated index template, Elasticsearch will emit a deprecation warning.

field_access_pattern enum · default: classic

Controls how processors in this pipeline should read and write data on a document's source.

Values: classic flexible

Response

application/json
acknowledged boolean required

For a successful response, this value is always true. On failure, an exception is returned instead.