Deactivate watch API

Hello! The https://www.elastic.co/guide/en/elasticsearch/reference/7.4/watcher-api-deactivate-watch.html process of deactivating the watch via CURL is described here but an example is provided for only one watcher

and if I have several watchers with names:

  • watcher_0
  • watcher_1
  • watcher_2
  • watcher_test_0
  • watcher_RCA_test

How can I deactivate them all with one command?

I tried to specify watcher_ * instead of watcher ID, but this did not help
PUT watcher/watch/watcher */_deactivate

each watch needs to be deactivated one-by-one, there is no bulk API.

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