Stop the watch service
Generally available
Stop the Watcher service if it is running.
highlight#highlightFromAnchor" href="#topic-required-authorization"> Required authorization
- Cluster privileges:
manage_watcher
POST
/_watcher/_stop
dropdown#toggle click@window->dropdown#hide touchend@window->dropdown#hide"
data-dropdown-target="button"
data-scrollable="false"
data-headings="false"
aria-expanded="false"
aria-haspopup="true"
role="menu"
tabindex="0">
Console
POST _watcher/_stop
resp = client.watcher.stop()
const response = await client.watcher.stop();
response = client.watcher.stop
$resp = $client->watcher()->stop();
curl -X POST -H "Authorization: ApiKey $ELASTIC_API_KEY" "$ELASTICSEARCH_URL/_watcher/_stop"
client.watcher().stop(s -> s);
Response examples (200)
A successful response from `POST _watcher/_stop`.
{
"acknowledged": true
}