19 lines
496 B
Plaintext
19 lines
496 B
Plaintext
[[api-rest-restart]]
|
|
==== Restart API
|
|
|
|
The `restart` watcher API stops, then starts the watcher service, as in the following example:
|
|
|
|
[source,js]
|
|
--------------------------------------------------
|
|
PUT _watcher/_restart
|
|
--------------------------------------------------
|
|
// AUTOSENSE
|
|
|
|
Watcher returns the following response if the request is successful:
|
|
|
|
[source,js]
|
|
--------------------------------------------------
|
|
{
|
|
"acknowledged": true
|
|
}
|
|
-------------------------------------------------- |