# Update alert using index API

**URL:** <https://discuss.elastic.co/t/update-alert-using-index-api/320800>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-alerting\
**Created:** [December 8, 2022, 2:48pm UTC](https://discuss.elastic.co/t/update-alert-using-index-api/320800 "2022-12-08T14:48:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Med2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/med2/32/101718_2.png) [@Med2](https://discuss.elastic.co/u/Med2)\
**Post date:** [December 8, 2022, 2:48pm UTC](https://discuss.elastic.co/t/update-alert-using-index-api/320800/1 "2022-12-08T14:48:03Z")

</div>

In order to retrieve all alerts that appear on kibana I used the "GET /.internal.alerts-security.alerts-\*/\_search" API.

I know there is an API for updating indexes and was wondering if I can use it to update an alert in kibana without any risks.

For example if I run the "update\_by\_query" API to update the status field of an alert from open to closed, will it appear in kibana as closed with no risk of corrupting the alerts index?

---

<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 5, 2023, 2:48pm UTC](https://discuss.elastic.co/t/update-alert-using-index-api/320800/2 "2023-01-05T14:48:15Z")

</div>

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