2022-02-04 10:37:42 -05:00
---
layout: default
title: Create or update ingest pipeline
parent: Ingest APIs
nav_order: 11
---
# Create and update a pipeline
The create ingest pipeline API operation creates or updates an ingest pipeline. Each pipeline requires an ingest definition defining how each processor transforms your documents.
## Example
```
2022-02-07 13:49:43 -05:00
PUT _ingest/pipeline/12345
2022-02-04 10:37:42 -05:00
{
"description" : "A description for your pipeline",
"processors" : [
{
"set" : {
"field": "field-name",
"value": "value"
}
}
]
}
```
2023-01-30 17:09:38 -05:00
{% include copy-curl.html %}
2022-02-04 10:37:42 -05:00
## Path and HTTP methods
```
PUT _ingest/pipeline/{id}
```
## Request body fields
2022-02-07 13:49:43 -05:00
Field | Required | Type | Description
:--- | :--- | :--- | :---
description | Optional | string | Description of your ingest pipeline.
2022-02-07 14:22:55 -05:00
processors | Required | Array of processor objects | A processor that transforms documents. Runs in the order specified. Appears in index once ran.
2022-02-04 10:37:42 -05:00
```json
{
"description" : "A description for your pipeline",
"processors" : [
{
"set" : {
"field": "field-name",
"value": "value"
}
}
]
}
```
## URL parameters
2022-02-07 13:49:43 -05:00
All URL parameters are optional.
2022-02-04 10:37:42 -05:00
Parameter | Type | Description
:--- | :--- | :---
2022-02-04 13:02:11 -05:00
master_timeout | time | How long to wait for a connection to the master node.
timeout | time | How long to wait for the request to return.
2022-02-04 10:37:42 -05:00
## Response
```json
{
"acknowledged" : true
}
```