elasticsearch/docs/reference/rest-api/watcher/start.asciidoc
Liam Thompson 33a71e3289
[DOCS] Refactor book-scoped variables in docs/reference/index.asciidoc (#107413)
* Remove `es-test-dir` book-scoped variable

* Remove `plugins-examples-dir` book-scoped variable

* Remove `:dependencies-dir:` and `:xes-repo-dir:` book-scoped variables

- In `index.asciidoc`, two variables (`:dependencies-dir:` and `:xes-repo-dir:`) were removed.
- In `sql/index.asciidoc`, the `:sql-tests:` path was updated to fuller path
- In `esql/index.asciidoc`, the `:esql-tests:` path was updated idem

* Replace `es-repo-dir` with `es-ref-dir`

* Move `:include-xpack: true` to few files that use it, remove from index.asciidoc
2024-04-17 14:37:07 +02:00

56 lines
1.3 KiB
Text

[role="xpack"]
[[watcher-api-start]]
=== Start watch service API
++++
<titleabbrev>Start watch service</titleabbrev>
++++
Starts the {watcher} service if it is not already running.
[[watcher-api-start-request]]
==== {api-request-title}
`POST _watcher/_start`
[[watcher-api-start-prereqs]]
==== {api-prereq-title}
* You must have `manage_watcher` cluster privileges to use this API. For more
information, see <<security-privileges>>.
//[[watcher-api-start-desc]]
//==== {api-description-title}
//[[watcher-api-start-path-params]]
//==== {api-path-parms-title}
[[watcher-api-start-query-params]]
==== {api-query-parms-title}
include::{es-ref-dir}/rest-api/common-parms.asciidoc[tag=master-timeout]
//[[watcher-api-start-request-body]]
//==== {api-request-body-title}
//[[watcher-api-start-response-body]]
//==== {api-response-body-title}
//[[watcher-api-start-response-codes]]
//==== {api-response-codes-title}
[[watcher-api-start-example]]
==== {api-examples-title}
[source,console]
--------------------------------------------------
POST _watcher/_start
--------------------------------------------------
{watcher} returns the following response if the request is successful:
[source,console-result]
--------------------------------------------------
{
"acknowledged": true
}
--------------------------------------------------