[role="xpack"]
[[watcher-api-stop]]
=== Stop watch service API
++++
<titleabbrev>Stop watch service</titleabbrev>
++++

Stops the {watcher} service if it is running.

[[watcher-api-stop-request]]
==== {api-request-title}

`POST _watcher/_stop`

[[watcher-api-stop-prereqs]]
==== {api-prereq-title}

* You must have `manage_watcher` cluster privileges to use this API. For more
information, see <<security-privileges>>.

//[[watcher-api-stop-desc]]
//==== {api-description-title}

//[[watcher-api-stop-path-params]]
//==== {api-path-parms-title}

[[watcher-api-stop-query-params]]
==== {api-query-parms-title}

`master_timeout`::
(Optional, <<time-units, time units>>) Specifies the period of time to wait for
a connection to the master node. If no response is received before the timeout
expires, the request fails and returns an error. Defaults to `30s`.

//[[watcher-api-stop-request-body]]
//==== {api-request-body-title}

//[[watcher-api-stop-response-body]]
//==== {api-response-body-title}

//[[watcher-api-stop-response-codes]]
//==== {api-response-codes-title}

[[watcher-api-stop-example]]
==== {api-examples-title}

[source,console]
--------------------------------------------------
POST _watcher/_stop
--------------------------------------------------

{watcher} returns the following response if the request is successful:

[source,console-result]
--------------------------------------------------
{
   "acknowledged": true
}
--------------------------------------------------
