# Pipeline name in body of \_update\_by\_query request

**URL:** <https://discuss.elastic.co/t/pipeline-name-in-body-of-update-by-query-request/251128>\
**Category:** Elasticsearch\
**Created:** [October 6, 2020, 1:05pm UTC](https://discuss.elastic.co/t/pipeline-name-in-body-of-update-by-query-request/251128 "2020-10-06T13:05:35Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![vasek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vasek/32/136636_2.png) [@vasek](https://discuss.elastic.co/u/vasek)\
**Post date:** [October 6, 2020, 1:05pm UTC](https://discuss.elastic.co/t/pipeline-name-in-body-of-update-by-query-request/251128/1 "2020-10-06T13:05:35Z")

</div>

Hello,  
is it possible to specify **id/name of pipeline** in **body** of `_update_by_query` request?

```
POST _update_by_query?pipeline=id_of_pipeline
{
   # How to specify pipeline here? Is it possible?
}
```

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [October 7, 2020, 7:13am UTC](https://discuss.elastic.co/t/pipeline-name-in-body-of-update-by-query-request/251128/2 "2020-10-07T07:13:04Z")

</div>

The pipeline needs to be set as a parameter.

Is there a special reason, why you need to set that in the body?

---

<div class="post-metadata">

**Author:** ![vasek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vasek/32/136636_2.png) [@vasek](https://discuss.elastic.co/u/vasek)\
**Post date:** [October 7, 2020, 7:26am UTC](https://discuss.elastic.co/t/pipeline-name-in-body-of-update-by-query-request/251128/3 "2020-10-07T07:26:06Z")

</div>

Hello @spinscale,  
I've read that at the certification exam answer shouldn't contain header of request.

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [October 7, 2020, 10:59am UTC](https://discuss.elastic.co/t/pipeline-name-in-body-of-update-by-query-request/251128/4 "2020-10-07T10:59:27Z")

</div>

sorry, I am not sure I understand, a query parameter has nothing to do with a header.

---

<div class="post-metadata">

**Author:** ![vasek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vasek/32/136636_2.png) [@vasek](https://discuss.elastic.co/u/vasek)\
**Post date:** [October 7, 2020, 1:49pm UTC](https://discuss.elastic.co/t/pipeline-name-in-body-of-update-by-query-request/251128/5 "2020-10-07T13:49:47Z")

</div>

I thought to do something like that:

```
POST _update_by_query
{
  "pipeline" : "name_of_pipeline"
}

```

= specifying pipeline name in body, not in header like

` POST _update_by_query?pipeline=name_of_pipeline`

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [October 7, 2020, 2:36pm UTC](https://discuss.elastic.co/t/pipeline-name-in-body-of-update-by-query-request/251128/6 "2020-10-07T14:36:30Z")

</div>

As already mentioned this is not possible. I was merely confused by your last statement about headers as that request does not contain any header as this is a parameter. I was thinking in terms of HTTP headers here, thus my confusion.

---

<div class="post-metadata">

**Author:** ![vasek](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vasek/32/136636_2.png) [@vasek](https://discuss.elastic.co/u/vasek)\
**Post date:** [October 8, 2020, 6:20am UTC](https://discuss.elastic.co/t/pipeline-name-in-body-of-update-by-query-request/251128/7 "2020-10-08T06:20:42Z")

</div>

OK. Thank you @spinscale.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [November 5, 2020, 6:20am UTC](https://discuss.elastic.co/t/pipeline-name-in-body-of-update-by-query-request/251128/8 "2020-11-05T06:20:45Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
