Skip to content

Commit 339a15b

Browse files
committed
[DOCS] Edits warning in put watch API (#38582)
1 parent d300048 commit 339a15b

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

x-pack/docs/en/rest-api/watcher/put-watch.asciidoc

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<titleabbrev>Put watch</titleabbrev>
66
++++
77

8-
The PUT watch API either registers a new watch in {watcher} or update an
8+
The PUT watch API either registers a new watch in {watcher} or updates an
99
existing one.
1010

1111
[float]
@@ -21,13 +21,13 @@ the `.watches` index and its trigger is immediately registered with the relevant
2121
trigger engine. Typically for the `schedule` trigger, the scheduler is the
2222
trigger engine.
2323

24-
IMPORTANT: Putting a watch must be done via this API only. Do not put a watch
25-
directly to the `.watches` index using the Elasticsearch Index API.
26-
If {es} {security-features} are enabled, make sure no `write`
27-
privileges are granted to anyone over the `.watches` index.
24+
IMPORTANT: You must use {kib} or this API to create a watch. Do not put a watch
25+
directly to the `.watches` index using the Elasticsearch index API.
26+
If {es} {security-features} are enabled, do not give users `write`
27+
privileges on the `.watches` index.
2828

2929
When adding a watch you can also define its initial
30-
{xpack-ref}/how-watcher-works.html#watch-active-state[active state]. You do that
30+
{stack-ov}/how-watcher-works.html#watch-active-state[active state]. You do that
3131
by setting the `active` parameter.
3232

3333
[float]
@@ -52,16 +52,16 @@ A watch has the following fields:
5252
|======
5353
| Name | Description
5454

55-
| `trigger` | The {xpack-ref}/trigger.html[trigger] that defines when
55+
| `trigger` | The {stack-ov}/trigger.html[trigger] that defines when
5656
the watch should run.
5757

58-
| `input` | The {xpack-ref}/input.html[input] that defines the input
58+
| `input` | The {stack-ov}/input.html[input] that defines the input
5959
that loads the data for the watch.
6060

61-
| `condition` | The {xpack-ref}/condition.html[condition] that defines if
61+
| `condition` | The {stack-ov}/condition.html[condition] that defines if
6262
the actions should be run.
6363

64-
| `actions` | The list of {xpack-ref}/actions.html[actions] that will be
64+
| `actions` | The list of {stack-ov}/actions.html[actions] that will be
6565
run if the condition matches
6666

6767
| `metadata` | Metadata json that will be copied into the history entries.
@@ -75,7 +75,7 @@ A watch has the following fields:
7575
==== Authorization
7676

7777
You must have `manage_watcher` cluster privileges to use this API. For more
78-
information, see {xpack-ref}/security-privileges.html[Security Privileges].
78+
information, see {stack-ov}/security-privileges.html[Security Privileges].
7979

8080
[float]
8181
==== Security Integration
@@ -148,7 +148,7 @@ PUT _watcher/watch/my-watch
148148
// CONSOLE
149149

150150
When you add a watch you can also define its initial
151-
{xpack-ref}/how-watcher-works.html#watch-active-state[active state]. You do that
151+
{stack-ov}/how-watcher-works.html#watch-active-state[active state]. You do that
152152
by setting the `active` parameter. The following command adds a watch and sets
153153
it to be inactive by default:
154154

0 commit comments

Comments
 (0)