19 lines
497 B
Plaintext
19 lines
497 B
Plaintext
[[api-rest-stop]]
|
|
==== Stop API
|
|
|
|
The `stop` watcher API stops the watcher service if the service is running, as in the following example:
|
|
|
|
[source,js]
|
|
--------------------------------------------------
|
|
PUT _watcher/_stop
|
|
--------------------------------------------------
|
|
// AUTOSENSE
|
|
|
|
Watcher returns the following response if the request is successful:
|
|
|
|
[source,js]
|
|
--------------------------------------------------
|
|
{
|
|
"acknowledged": true
|
|
}
|
|
-------------------------------------------------- |