# Reindex API and wait-for-completion task return

**URL:** <https://discuss.elastic.co/t/reindex-api-and-wait-for-completion-task-return/63547>\
**Category:** Elasticsearch\
**Created:** [October 20, 2016, 8:54pm UTC](https://discuss.elastic.co/t/reindex-api-and-wait-for-completion-task-return/63547 "2016-10-20T20:54:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Isaias\_Barroso](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/isaias_barroso/32/3980_2.png) [@Isaias\_Barroso](https://discuss.elastic.co/u/Isaias_Barroso)\
**Post date:** [October 20, 2016, 8:54pm UTC](https://discuss.elastic.co/t/reindex-api-and-wait-for-completion-task-return/63547/1 "2016-10-20T20:54:30Z")

</div>

Hi all.

I've read on document API for Reindex (5.x) that if I pass ?wait-for-completion=false for \_reindex as URL parameter a task will be returned to be used for get status.

> If the request contains wait\_for\_completion=false then Elasticsearch will perform some preflight checks, launch the request, and then return a task which can be used with Tasks APIs to cancel or get the status of the task

But when I'm passing that URL parameter I'm not getting a task information. I'm missing something?

Best regards

---

<div class="post-metadata">

**Author:** ![nik9000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nik9000/32/44947_2.png) [@nik9000](https://discuss.elastic.co/u/nik9000)\
**Post date:** [October 20, 2016, 9:07pm UTC](https://discuss.elastic.co/t/reindex-api-and-wait-for-completion-task-return/63547/2 "2016-10-20T21:07:59Z")

</div>

> [@Isaias\_Barroso](#):
>
> ?wait-for-completion=false

s/-/\_/ I think. It is `?wait_for_completion=false`.

---

<div class="post-metadata">

**Author:** ![Isaias\_Barroso](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/isaias_barroso/32/3980_2.png) [@Isaias\_Barroso](https://discuss.elastic.co/u/Isaias_Barroso)\
**Post date:** [October 20, 2016, 9:32pm UTC](https://discuss.elastic.co/t/reindex-api-and-wait-for-completion-task-return/63547/3 "2016-10-20T21:32:13Z")

</div>

Hi @nik9000.

Shame on me. I've read the URL many times and don't get the point. In a next issue I'll do copy paste 🙂

Thanks a lot

---

<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, 10:10pm UTC](https://discuss.elastic.co/t/reindex-api-and-wait-for-completion-task-return/63547/4 "2017-07-05T22:10:42Z")

</div>


