# Request body is required Error encountered while performing reindexing task

**URL:** <https://discuss.elastic.co/t/request-body-is-required-error-encountered-while-performing-reindexing-task/327327>\
**Category:** Elasticsearch\
**Created:** [March 9, 2023, 7:16am UTC](https://discuss.elastic.co/t/request-body-is-required-error-encountered-while-performing-reindexing-task/327327 "2023-03-09T07:16:48Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chandan1](https://avatars.discourse-cdn.com/v4/letter/c/5f8ce5/32.png) [@Chandan1](https://discuss.elastic.co/u/Chandan1)\
**Post date:** [March 9, 2023, 7:16am UTC](https://discuss.elastic.co/t/request-body-is-required-error-encountered-while-performing-reindexing-task/327327/1 "2023-03-09T07:16:48Z")

</div>

Hello,

I am trying to reindex the index with reindex api by providing a proper request body with the Source and Destination Index details and still iam receiving Request body is required Error.  
Please find below Request and response Message screenshot.  
 ![image](https://us1.discourse-cdn.com/elastic/original/3X/8/e/8e85c59f434f7220e9425cbe28d686713bb2895a.png)

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/1/e/1e432edf3a98f7177e24361989503138ef185a24.jpeg)

Can Someone help here? Thanks in Advance

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [March 9, 2023, 7:21am UTC](https://discuss.elastic.co/t/request-body-is-required-error-encountered-while-performing-reindexing-task/327327/2 "2023-03-09T07:21:29Z")

</div>

Welcome to our community! 😃

Please don't post pictures of text, logs or code. They are difficult to read, impossible to search and replicate (if it's code), and some people may not be even able to see them 🙂

---

<div class="post-metadata">

**Author:** ![Chandan1](https://avatars.discourse-cdn.com/v4/letter/c/5f8ce5/32.png) [@Chandan1](https://discuss.elastic.co/u/Chandan1)\
**Post date:** [March 9, 2023, 7:43am UTC](https://discuss.elastic.co/t/request-body-is-required-error-encountered-while-performing-reindexing-task/327327/3 "2023-03-09T07:43:27Z")

</div>

Thank you, I will take that Suggestion.

Appreciate it if you could help.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [March 9, 2023, 7:45am UTC](https://discuss.elastic.co/t/request-body-is-required-error-encountered-while-performing-reindexing-task/327327/4 "2023-03-09T07:45:55Z")

</div>

I can't read those images sorry, you will need to copy and post it as formatted text.

---

<div class="post-metadata">

**Author:** ![Chandan1](https://avatars.discourse-cdn.com/v4/letter/c/5f8ce5/32.png) [@Chandan1](https://discuss.elastic.co/u/Chandan1)\
**Post date:** [March 9, 2023, 7:58am UTC](https://discuss.elastic.co/t/request-body-is-required-error-encountered-while-performing-reindexing-task/327327/5 "2023-03-09T07:58:37Z")

</div>

So, I am trying to reindex the elasticsearch indices with the below request, and I am using Dev tools in Kibana for this operation.  
"""  
POST \_reindex  
{  
"source": {  
"index": "flows-2023.02.25-000314"  
},  
"dest": {  
"index": "dev\_index\_new"  
}  
}  
"""  
and it produced the output as below  
"""  
{  
"error" : {  
"root\_cause" : [  
{  
"type" : "parse\_exception",  
"reason" : "request body is required"  
}  
],  
"type" : "parse\_exception",  
"reason" : "request body is required"  
},  
"status" : 400  
}  
"""  
Am i doing anything wrong in this ?

---

<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:** [April 6, 2023, 7:59am UTC](https://discuss.elastic.co/t/request-body-is-required-error-encountered-while-performing-reindexing-task/327327/6 "2023-04-06T07:59:08Z")

</div>

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