---
type: api
title: Stop the watch service
description: Stop the Watcher service if it is running.
url: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/elasticsearch/v8/operation/operation-watcher-stop
resource: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/elasticsearch/v8/operation/operation-watcher-stop
products:
  - Elasticsearch
---

# Stop the watch service

Availability:

## Paths

- `POST` `/_watcher/_stop`

- [Api key auth](/elastic/docs-builder/docs/4371/api/doc/elasticsearch/v8/authentication#apikeyauth)
- [Basic auth](/elastic/docs-builder/docs/4371/api/doc/elasticsearch/v8/authentication#basicauth)
- [Bearer auth](/elastic/docs-builder/docs/4371/api/doc/elasticsearch/v8/authentication#bearerauth)

## Description

Stop the Watcher service if it is running.

## Required authorization

* Cluster privileges: `manage_watcher`

## Query String Parameters

- `master_timeout` (string Duration · default: 30s)
  The period to wait for the master node.
If the master node is not available before the timeout expires, the request fails and returns an error.
To indicate that the request should never timeout, set it to `-1`.

## Response

`application/json`

- `acknowledged` (boolean)
  For a successful response, this value is always true. On failure, an exception is returned instead.
## Code Examples

#### Console

```console
POST _watcher/_stop
```

#### JavaScript

```javascript
const response = await client.watcher.stop();
```

#### Python

```python
resp = client.watcher.stop()
```

#### curl

```curl
curl -X POST "$ELASTICSEARCH_URL/_watcher/_stop" \
  -H "Authorization: ApiKey $ELASTIC_API_KEY"
```

#### Java

```java
client.watcher().stop(s -> s);
```

#### PHP

```php
$resp = $client->watcher()->stop();
```

#### Ruby

```ruby
response = client.watcher.stop
```

## Response Examples

#### Watcher stop response example1

A successful response from `POST _watcher/_stop`.

```json
{
  "acknowledged": true
}
```

