# Is there way to suppress the watcher alert at the single shot and activate it back

**URL:** <https://discuss.elastic.co/t/is-there-way-to-suppress-the-watcher-alert-at-the-single-shot-and-activate-it-back/360282>\
**Category:** Kibana\
**Created:** [May 27, 2024, 11:29am UTC](https://discuss.elastic.co/t/is-there-way-to-suppress-the-watcher-alert-at-the-single-shot-and-activate-it-back/360282 "2024-05-27T11:29:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kannan\_Rajendran](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kannan_rajendran/32/78272_2.png) [@Kannan\_Rajendran](https://discuss.elastic.co/u/Kannan_Rajendran)\
**Post date:** [May 27, 2024, 11:29am UTC](https://discuss.elastic.co/t/is-there-way-to-suppress-the-watcher-alert-at-the-single-shot-and-activate-it-back/360282/1 "2024-05-27T11:29:44Z")

</div>

is there way to automate this enable and disable of the watchers based on any scheduled manner?

Regards,  
Kannan R

---

<div class="post-metadata">

**Author:** ![yago82](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yago82/32/97755_2.png) [@yago82](https://discuss.elastic.co/u/yago82)\
**Post date:** [May 27, 2024, 1:06pm UTC](https://discuss.elastic.co/t/is-there-way-to-suppress-the-watcher-alert-at-the-single-shot-and-activate-it-back/360282/2 "2024-05-27T13:06:18Z")

</div>

Hi,

To enable or disable a watcher, you need to know the ID of the watcher. The ID is used in the API endpoint to specify which watcher to enable or disable. The correct API endpoint to disable a watcher is `/api/watcher/watch/<watch_id>/_deactivate` and to enable it back is `/api/watcher/watch/<watch_id>/_activate`.

> **[Activate watch API | Elasticsearch Guide \[8.13\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-activate-watch.html)**

> **[Deactivate watch API | Elasticsearch Guide \[8.13\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-deactivate-watch.html)**

Please replace `<watch_id>` with the actual ID of the watcher you want to enable or disable.

If you want to automate this process, you might consider using a cron job or a similar scheduling tool to send these API requests at the desired times. However, please note that this would require additional setup outside of Kibana.

Regards
