Skip to content

Commit 94f6f94

Browse files
authored
Specify name on enrich.get_policy as list type (#50217)
This commit updates the enrich.get_policy API to specify name as a list, in line with other URL parts that accept a comma-separated list of values. In addition, update the get enrich policy API docs to align the URL part name in the documentation with the name used in the REST API specs.
1 parent dfe0b4f commit 94f6f94

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/reference/ingest/apis/enrich/get-enrich-policy.asciidoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ GET /_enrich/policy/my-policy
5050
[[get-enrich-policy-api-request]]
5151
==== {api-request-title}
5252

53-
`GET /_enrich/policy/<enrich-policy>`
53+
`GET /_enrich/policy/<name>`
5454

5555
`GET /_enrich/policy`
5656

@@ -64,7 +64,7 @@ include::put-enrich-policy.asciidoc[tag=enrich-policy-api-prereqs]
6464
[[get-enrich-policy-api-path-params]]
6565
==== {api-path-parms-title}
6666

67-
`<enrich-policy>`::
67+
`<name>`::
6868
+
6969
--
7070
(Optional, string)

x-pack/plugin/src/test/resources/rest-api-spec/api/enrich.get_policy.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
"methods": [ "GET" ],
1212
"parts": {
1313
"name": {
14-
"type" : "string",
15-
"description" : "The name of the enrich policy"
14+
"type" : "list",
15+
"description" : "A comma-separated list of enrich policy names"
1616
}
1717
}
1818
},

0 commit comments

Comments
 (0)