But we are getting the below error while trying to execute this command,
{“statusCode”:400,“error”:“Bad Request”,“message”:“[request query.method]: Method must be one of, case insensitive [‘HEAD’, ‘GET’, ‘POST’, ‘PUT’, ‘DELETE’]. Received ‘PATCH’.”}
Thank you @pablo and @searchymcsearchface
However I am able to see that we will not be able to modify elasticsearch.yml in AWS managed ElasticSearch clusters.
Can you then point me how to make this edit using any API or something in my case where I am having AWS managed ElasticSearch cluster.
As per documentation, the PATCH API is enabled through the elasticsearch.yml file only. There is no API to enable PATCH in the running cluster.
Maybe you should try to ask your ES provider (AWS) to include the PATCH API in your cluster configuration.