OpenSearch/docs/java-rest/high-level/enrich/put_policy.asciidoc

32 lines
848 B
Plaintext

--
:api: enrich-put-policy
:request: PutPolicyRequest
:response: AcknowledgedResponse
--
[id="{upid}-{api}"]
=== Put Policy API
[id="{upid}-{api}-request"]
==== Request
The Put Policy API stores an enrich policy in Elasticsearch.
["source","java",subs="attributes,callouts,macros"]
--------------------------------------------------
include-tagged::{doc-tests-file}[{api}-request]
--------------------------------------------------
[id="{upid}-{api}-response"]
==== Response
The returned +{response}+ indicates if the put policy request was acknowledged.
["source","java",subs="attributes,callouts,macros"]
--------------------------------------------------
include-tagged::{doc-tests-file}[{api}-response]
--------------------------------------------------
<1> Whether put policy request was acknowledged.
include::../execution.asciidoc[]