Create or update a pipeline
- PUT /_ingest/pipeline/{id}
Changes made using this API take effect immediately.
Read the reference documentationPath Parameters
-
idstring Idrequired -
ID of the ingest pipeline to create or update.
Query Parameters
-
master_timeoutstring Duration · 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.
-
timeoutstring Duration · 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_versionnumber VersionNumber Required version for optimistic concurrency control for pipeline updates
Request
-
_metaMetadata -
Optional metadata about the ingest pipeline. May have any contents. This map is not automatically generated by Elasticsearch.
-
descriptionstring -
Description of the ingest pipeline.
-
on_failureProcessorContainer -
Processors to run immediately after a processor failure. Each processor supports a processor-level
on_failurevalue. If a processor without anon_failurevalue 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. -
processorsProcessorContainer -
Processors used to perform transformations on documents before indexing. Processors run sequentially in the order specified.
-
versionnumber VersionNumber -
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.
-
deprecatedboolean · 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.
Response
-
acknowledgedbooleanrequired -
For a successful response, this value is always true. On failure, an exception is returned instead.