# Is there any way to validate other APIs like create index or update\_by\_query before executing it?

**URL:** <https://discuss.elastic.co/t/is-there-any-way-to-validate-other-apis-like-create-index-or-update-by-query-before-executing-it/258539>\
**Category:** Elasticsearch\
**Created:** [December 14, 2020, 5:53am UTC](https://discuss.elastic.co/t/is-there-any-way-to-validate-other-apis-like-create-index-or-update-by-query-before-executing-it/258539 "2020-12-14T05:53:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Graywd](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/graywd/32/80680_2.png) [@Graywd](https://discuss.elastic.co/u/Graywd)\
**Post date:** [December 14, 2020, 5:53am UTC](https://discuss.elastic.co/t/is-there-any-way-to-validate-other-apis-like-create-index-or-update-by-query-before-executing-it/258539/1 "2020-12-14T05:53:49Z")

</div>

The situation is that before the es statement real executes I need to validate it to guarantee it will work at the time point expected.

Runtime error can be tolerated while the semantic error is not.

Thanks.

---

<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:** [December 14, 2020, 9:33pm UTC](https://discuss.elastic.co/t/is-there-any-way-to-validate-other-apis-like-create-index-or-update-by-query-before-executing-it/258539/2 "2020-12-14T21:33:30Z")

</div>

Welcome to our community! 😃

There's no other way than to run the query.

---

<div class="post-metadata">

**Author:** ![Graywd](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/graywd/32/80680_2.png) [@Graywd](https://discuss.elastic.co/u/Graywd)\
**Post date:** [December 16, 2020, 2:36am UTC](https://discuss.elastic.co/t/is-there-any-way-to-validate-other-apis-like-create-index-or-update-by-query-before-executing-it/258539/3 "2020-12-16T02:36:44Z")

</div>

OK, I'll use an empty Elasticserarch as an inspection server to make it.

Thank you very much.

---

<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:** [January 13, 2021, 2:36am UTC](https://discuss.elastic.co/t/is-there-any-way-to-validate-other-apis-like-create-index-or-update-by-query-before-executing-it/258539/4 "2021-01-13T02:36:46Z")

</div>

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