///<summary>PUT on /_security/user/_password <para>https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-change-password.html</para></summary> ///<param name = "body">the new password for the user</param> ///<param name = "requestParameters">Request specific configuration such as querystring parameters & request specific connection settings.</param> public TResponse ChangePassword <TResponse>(PostData body, ChangePasswordRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => DoRequest <TResponse>(PUT, "_security/user/_password", body, RequestParams(requestParameters));
///<summary>PUT on /_security/user/_password <para>https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-change-password.html</para></summary> ///<param name = "body">the new password for the user</param> ///<param name = "requestParameters">Request specific configuration such as querystring parameters & request specific connection settings.</param> public Task <TResponse> ChangePasswordAsync <TResponse>(PostData body, ChangePasswordRequestParameters requestParameters = null, CancellationToken ctx = default) where TResponse : class, IElasticsearchResponse, new() => DoRequestAsync <TResponse>(PUT, "_security/user/_password", ctx, body, RequestParams(requestParameters));
///<summary>PUT on /_security/user/{username}/_password <para>https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-change-password.html</para></summary> ///<param name = "username">The username of the user to change the password for</param> ///<param name = "body">the new password for the user</param> ///<param name = "requestParameters">Request specific configuration such as querystring parameters & request specific connection settings.</param> public TResponse ChangePassword <TResponse>(string username, PostData body, ChangePasswordRequestParameters requestParameters = null) where TResponse : class, IElasticsearchResponse, new() => DoRequest <TResponse>(PUT, Url($"_security/user/{username:username}/_password"), body, RequestParams(requestParameters));