# Update\_by\_query python API

**URL:** <https://discuss.elastic.co/t/update-by-query-python-api/45947>\
**Category:** Elasticsearch\
**Created:** [March 31, 2016, 1:47pm UTC](https://discuss.elastic.co/t/update-by-query-python-api/45947 "2016-03-31T13:47:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![alienmind](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alienmind/32/10799_2.png) [@alienmind](https://discuss.elastic.co/u/alienmind)\
**Post date:** [March 31, 2016, 1:47pm UTC](https://discuss.elastic.co/t/update-by-query-python-api/45947/1 "2016-03-31T13:47:54Z")

</div>

I'm migrating some client side code (Python) that combined search with templates and update to the newest update\_by\_query API ([https://www.elastic.co/guide/en/elasticsearch/reference/2.3/docs-update-by-query.html](https://www.elastic.co/guide/en/elasticsearch/reference/2.3/docs-update-by-query.html))

I have two questions actually:

1. When will this API be included in the official Python client (I've just updated from 2.2.0 to 2.3.0 and appears not to support it) - also, can't find the documentation . This is by far one of the most useful API's in the project I'm working on.

2. Whether I can use inline templates in the search body {{arg1}} {{arg2}} like I currently do with the \_search/template API

Thanks

---

<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:** [July 5, 2017, 11:03pm UTC](https://discuss.elastic.co/t/update-by-query-python-api/45947/2 "2017-07-05T23:03:32Z")

</div>


