diff --git a/client/rest-high-level/src/main/java/org/elasticsearch/client/RequestConverters.java b/client/rest-high-level/src/main/java/org/elasticsearch/client/RequestConverters.java index 728d304077f..df423b8b5ec 100644 --- a/client/rest-high-level/src/main/java/org/elasticsearch/client/RequestConverters.java +++ b/client/rest-high-level/src/main/java/org/elasticsearch/client/RequestConverters.java @@ -1159,7 +1159,7 @@ final class RequestConverters { Request request = new Request(HttpPut.METHOD_NAME, new EndpointBuilder() .addCommaSeparatedPathParts(indices) - .addPathPartAsIs("_lifecycle") + .addPathPartAsIs("_ilm") .addPathPart(setPolicyRequest.policy()) .build()); Params params = new Params(request); diff --git a/client/rest-high-level/src/test/java/org/elasticsearch/client/RequestConvertersTests.java b/client/rest-high-level/src/test/java/org/elasticsearch/client/RequestConvertersTests.java index 0be12e8cebe..6028dc3c783 100644 --- a/client/rest-high-level/src/test/java/org/elasticsearch/client/RequestConvertersTests.java +++ b/client/rest-high-level/src/test/java/org/elasticsearch/client/RequestConvertersTests.java @@ -2597,7 +2597,7 @@ public class RequestConvertersTests extends ESTestCase { String idxString = Strings.arrayToCommaDelimitedString(indices); assertThat(request.getEndpoint(), equalTo("/" + (idxString.isEmpty() ? "" : (idxString + "/")) + - "_lifecycle/" + policyName)); + "_ilm/" + policyName)); assertThat(request.getParameters(), equalTo(expectedParams)); }