Repository: opensearch-project/opensearch-go
Pull request #673 (2025-02-19 22:39:04)

Added FilterPath param
### Description
Added [filter path](https://opensearch.org/docs/latest/api-reference/common-parameters/#filtered-responses) param

### Issues Resolved
Closes https://github.com/opensearch-project/opensearch-go/issues/616

codecov[bot]: ## [Codecov](https://app.codecov.io/gh/opensearch-project/opensearch-go/pull/673?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensearch-project) Report
Attention: Patch coverage is `0.66225%` with `450 lines` in your changes missing coverage. Please review.
> Project coverage is 14.83%. Comparing base [(`06a6dc8`)](https://app.codecov.io/gh/opensearch-project/opensearch-go/commit/06a6dc8cbaeb8d1e3657487661edd4900e4f31df?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensearch-project) to head [(`005cbff`)](https://app.codecov.io/gh/opensearch-project/opensearch-go/commit/005cbff663233b71c4dcb0948402aad231c3df24?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensearch-project).
> Report is 87 commits behind head on main.

| [Files with missing lines](https://app.codecov.io/gh/opensearch-project/opensearch-go/pull/673?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensearch-project) | Patch % | Lines |
|---|---|---|
| [opensearchapi/api\_indices-alias-params.go](https://app.codecov.io/gh/opensearch-project/opensearch-go/pull/673?src=pr&el=tree&filepath=opensearchapi%2Fapi_indices-alias-params.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensearch-project#diff-b3BlbnNlYXJjaGFwaS9hcGlfaW5kaWNlcy1hbGlhcy1wYXJhbXMuZ28=) | 0.00% | [12 Missing :warning: ](https://app.codecov.io/gh/opensearch-project/opensearch-go/pull/673?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensearch-project) |
| [opensearchapi/api\_cluster-decommission-params.go](https://app.codecov.io/gh/opensearch-project/opensearch-go/pull/673?src=pr&el=tree&filepath=opensearchapi%2Fapi_cluster-decommission-params.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensearch-project#diff-b3BlbnNlYXJjaGFwaS9hcGlfY2x1c3Rlci1kZWNvbW1pc3Npb24tcGFyYW1zLmdv) | 0.00% | [9 Missing :warning: ](https://app.codecov.io/gh/opensearch-project/opensearch-go/pull/673?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensearch-project) |
| [opensearchapi/api\_cluster-settings-params.go](https://app.codecov.io/gh/opensearch-project/opensearch-go/pull/673?src=pr&el=tree&filepath=opensearchapi%2Fapi_cluster-settings-params.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensearch-project#diff-b3BlbnNlYXJjaGFwaS9hcGlfY2x1c3Rlci1zZXR0aW5ncy1wYXJhbXMuZ28=) | 0.00% | [6 Missing :warning: ](https://app.codecov.io/gh/opensearch-project/opensearch-go/pull/673?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensearch-project) |
| [...api/api\_cluster-voting\_config\_exclusions-params.go](https://app.codecov.io/gh/opensearch-project/opensearch-go/pull/673?src=pr&el=tree&filepath=opensearchapi%2Fapi_cluster-voting_config_exclusions-params.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensearch-project#diff-b3BlbnNlYXJjaGFwaS9hcGlfY2x1c3Rlci12b3RpbmdfY29uZmlnX2V4Y2x1c2lvbnMtcGFyYW1zLmdv) | 0.00% | [6 Missing :warning: ](https://app.codecov.io/gh/opensearch-project/opensearch-go/pull/673?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensearch-project) |
| [opensearchapi/api\_indices-mapping-params.go](https://app.codecov.io/gh/opensearch-project/opensearch-go/pull/673?src=pr&el=tree&filepath=opensearchapi%2Fapi_indices-mapping-params.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensearch-project#diff-b3BlbnNlYXJjaGFwaS9hcGlfaW5kaWNlcy1tYXBwaW5nLXBhcmFtcy5nbw==) | 0.00% | [6 Missing :warning: ](https://app.codecov.io/gh/opensearch-project/opensearch-go/pull/673?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensearch-project) |
| [opensearchapi/api\_indices-settings-params.go](https://app.codecov.io/gh/opensearch-project/opensearch-go/pull/673?src=pr&el=tree&filepath=opensearchapi%2Fapi_indices-settings-params.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensearch-project#diff-b3BlbnNlYXJjaGFwaS9hcGlfaW5kaWNlcy1zZXR0aW5ncy1wYXJhbXMuZ28=) | 0.00% | [6 Missing :warning: ](https://app.codecov.io/gh/opensearch-project/opensearch-go/pull/673?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensearch-project) |
| [opensearchapi/api\_aliases-params.go](https://app.codecov.io/gh/opensearch-project/opensearch-go/pull/673?src=pr&el=tree&filepath=opensearchapi%2Fapi_aliases-params.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensearch-project#diff-b3BlbnNlYXJjaGFwaS9hcGlfYWxpYXNlcy1wYXJhbXMuZ28=) | 0.00% | [3 Missing :warning: ](https://app.codecov.io/gh/opensearch-project/opensearch-go/pull/673?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensearch-project) |
| [opensearchapi/api\_bulk-params.go](https://app.codecov.io/gh/opensearch-project/opensearch-go/pull/673?src=pr&el=tree&filepath=opensearchapi%2Fapi_bulk-params.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensearch-project#diff-b3BlbnNlYXJjaGFwaS9hcGlfYnVsay1wYXJhbXMuZ28=) | 0.00% | [3 Missing :warning: ](https://app.codecov.io/gh/opensearch-project/opensearch-go/pull/673?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensearch-project) |
| [opensearchapi/api\_cat-aliases-params.go](https://app.codecov.io/gh/opensearch-project/opensearch-go/pull/673?src=pr&el=tree&filepath=opensearchapi%2Fapi_cat-aliases-params.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensearch-project#diff-b3BlbnNlYXJjaGFwaS9hcGlfY2F0LWFsaWFzZXMtcGFyYW1zLmdv) | 0.00% | [3 Missing :warning: ](https://app.codecov.io/gh/opensearch-project/opensearch-go/pull/673?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensearch-project) |
| [opensearchapi/api\_cat-allocation-params.go](https://app.codecov.io/gh/opensearch-project/opensearch-go/pull/673?src=pr&el=tree&filepath=opensearchapi%2Fapi_cat-allocation-params.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensearch-project#diff-b3BlbnNlYXJjaGFwaS9hcGlfY2F0LWFsbG9jYXRpb24tcGFyYW1zLmdv) | 0.00% | [3 Missing :warning: ](https://app.codecov.io/gh/opensearch-project/opensearch-go/pull/673?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensearch-project) |
| ... and [131 more](https://app.codecov.io/gh/opensearch-project/opensearch-go/pull/673?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensearch-project) | |

> :exclamation:  There is a different number of reports uploaded between BASE (06a6dc8) and HEAD (005cbff). Click for more details.
> 
> <details><summary>HEAD has 1 upload less than BASE</summary>
>
>| Flag | BASE (06a6dc8) | HEAD (005cbff) |
>|------|------|------|
>|integration|1|0|
></details>

<details><summary>Additional details and impacted files</summary>


```diff
@@             Coverage Diff             @@
##             main     #673       +/-   ##
===========================================
- Coverage   57.29%   14.83%   -42.46%     
===========================================
  Files         315      316        +1     
  Lines        9823    10354      +531     
===========================================
- Hits         5628     1536     -4092     
- Misses       2902     8736     +5834     
+ Partials     1293       82     -1211     
```

| [Flag](https://app.codecov.io/gh/opensearch-project/opensearch-go/pull/673/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensearch-project) | Coverage Δ | |
|---|---|---|
| [integration](https://app.codecov.io/gh/opensearch-project/opensearch-go/pull/673/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensearch-project) | `?` | |
| [unit](https://app.codecov.io/gh/opensearch-project/opensearch-go/pull/673/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensearch-project) | `14.83% <0.66%> (+1.98%)` | :arrow_up: |

Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensearch-project#carryforward-flags-in-the-pull-request-comment) to find out more.

| [Files with missing lines](https://app.codecov.io/gh/opensearch-project/opensearch-go/pull/673?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensearch-project) | Coverage Δ | |
|---|---|---|
| [opensearchapi/api\_search-params.go](https://app.codecov.io/gh/opensearch-project/opensearch-go/pull/673?src=pr&el=tree&filepath=opensearchapi%2Fapi_search-params.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensearch-project#diff-b3BlbnNlYXJjaGFwaS9hcGlfc2VhcmNoLXBhcmFtcy5nbw==) | `90.38% <100.00%> (+83.05%)` | :arrow_up: |
| [opensearchapi/api\_aliases-params.go](https://app.codecov.io/gh/opensearch-project/opensearch-go/pull/673?src=pr&el=tree&filepath=opensearchapi%2Fapi_aliases-params.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensearch-project#diff-b3BlbnNlYXJjaGFwaS9hcGlfYWxpYXNlcy1wYXJhbXMuZ28=) | `0.00% <0.00%> (-18.19%)` | :arrow_down: |
| [opensearchapi/api\_bulk-params.go](https://app.codecov.io/gh/opensearch-project/opensearch-go/pull/673?src=pr&el=tree&filepath=opensearchapi%2Fapi_bulk-params.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensearch-project#diff-b3BlbnNlYXJjaGFwaS9hcGlfYnVsay1wYXJhbXMuZ28=) | `0.00% <0.00%> (-37.50%)` | :arrow_down: |
| [opensearchapi/api\_cat-aliases-params.go](https://app.codecov.io/gh/opensearch-project/opensearch-go/pull/673?src=pr&el=tree&filepath=opensearchapi%2Fapi_cat-aliases-params.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensearch-project#diff-b3BlbnNlYXJjaGFwaS9hcGlfY2F0LWFsaWFzZXMtcGFyYW1zLmdv) | `0.00% <0.00%> (-20.00%)` | :arrow_down: |
| [opensearchapi/api\_cat-allocation-params.go](https://app.codecov.io/gh/opensearch-project/opensearch-go/pull/673?src=pr&el=tree&filepath=opensearchapi%2Fapi_cat-allocation-params.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensearch-project#diff-b3BlbnNlYXJjaGFwaS9hcGlfY2F0LWFsbG9jYXRpb24tcGFyYW1zLmdv) | `0.00% <0.00%> (-15.39%)` | :arrow_down: |
| [opensearchapi/api\_cat-cluster\_manager-params.go](https://app.codecov.io/gh/opensearch-project/opensearch-go/pull/673?src=pr&el=tree&filepath=opensearchapi%2Fapi_cat-cluster_manager-params.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensearch-project#diff-b3BlbnNlYXJjaGFwaS9hcGlfY2F0LWNsdXN0ZXJfbWFuYWdlci1wYXJhbXMuZ28=) | `0.00% <0.00%> (-18.19%)` | :arrow_down: |
| [opensearchapi/api\_cat-count-params.go](https://app.codecov.io/gh/opensearch-project/opensearch-go/pull/673?src=pr&el=tree&filepath=opensearchapi%2Fapi_cat-count-params.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensearch-project#diff-b3BlbnNlYXJjaGFwaS9hcGlfY2F0LWNvdW50LXBhcmFtcy5nbw==) | `0.00% <0.00%> (-25.00%)` | :arrow_down: |
| [opensearchapi/api\_cat-fielddata-params.go](https://app.codecov.io/gh/opensearch-project/opensearch-go/pull/673?src=pr&el=tree&filepath=opensearchapi%2Fapi_cat-fielddata-params.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensearch-project#diff-b3BlbnNlYXJjaGFwaS9hcGlfY2F0LWZpZWxkZGF0YS1wYXJhbXMuZ28=) | `0.00% <0.00%> (-22.23%)` | :arrow_down: |
| [opensearchapi/api\_cat-health-params.go](https://app.codecov.io/gh/opensearch-project/opensearch-go/pull/673?src=pr&el=tree&filepath=opensearchapi%2Fapi_cat-health-params.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensearch-project#diff-b3BlbnNlYXJjaGFwaS9hcGlfY2F0LWhlYWx0aC1wYXJhbXMuZ28=) | `0.00% <0.00%> (-20.00%)` | :arrow_down: |
| [opensearchapi/api\_cat-indices-params.go](https://app.codecov.io/gh/opensearch-project/opensearch-go/pull/673?src=pr&el=tree&filepath=opensearchapi%2Fapi_cat-indices-params.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensearch-project#diff-b3BlbnNlYXJjaGFwaS9hcGlfY2F0LWluZGljZXMtcGFyYW1zLmdv) | `0.00% <0.00%> (-17.65%)` | :arrow_down: |
| ... and [132 more](https://app.codecov.io/gh/opensearch-project/opensearch-go/pull/673?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensearch-project) | |

... and [164 files with indirect coverage changes](https://app.codecov.io/gh/opensearch-project/opensearch-go/pull/673/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=opensearch-project)

</details>
dblock: Thanks @MaximMolchanov, amend your PR with `-s` for DCO and add to CHANGELOG please.

This kind of change really shows that we need #284, maybe you want to help?

Patch:
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 6bac286..7a7a3ea 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -6,6 +6,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
 ### Dependencies
 ### Added
 - Adds `InnerHits` field to `SearchResp` ([#672](https://github.com/opensearch-project/opensearch-go/pull/672))
+- Adds `FilterPath` param ([#673](https://github.com/opensearch-project/opensearch-go/pull/673))
 
 ### Changed
 ### Deprecated
diff --git a/opensearchapi/api_aliases-params.go b/opensearchapi/api_aliases-params.go
index 4381a3f..8705d7e 100644
--- a/opensearchapi/api_aliases-params.go
+++ b/opensearchapi/api_aliases-params.go
@@ -26,7 +26,10 @@
 
 package opensearchapi
 
-import "time"
+import (
+	"strings"
+	"time"
+)
 
 // AliasesParams represents possible parameters for the AliasesReq
 type AliasesParams struct {
@@ -37,6 +40,7 @@ type AliasesParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r AliasesParams) get() map[string]string {
@@ -66,5 +70,9 @@ func (r AliasesParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_bulk-params.go b/opensearchapi/api_bulk-params.go
index 580aa13..c5af7d8 100644
--- a/opensearchapi/api_bulk-params.go
+++ b/opensearchapi/api_bulk-params.go
@@ -47,6 +47,7 @@ type BulkParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r BulkParams) get() map[string]string {
@@ -109,5 +110,9 @@ func (r BulkParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_cat-aliases-params.go b/opensearchapi/api_cat-aliases-params.go
index c3bf97a..ddb9658 100644
--- a/opensearchapi/api_cat-aliases-params.go
+++ b/opensearchapi/api_cat-aliases-params.go
@@ -42,6 +42,7 @@ type CatAliasesParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r CatAliasesParams) get() map[string]string {
@@ -79,6 +80,10 @@ func (r CatAliasesParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	params["format"] = "json"
 
 	return params
diff --git a/opensearchapi/api_cat-allocation-params.go b/opensearchapi/api_cat-allocation-params.go
index 6ddc428..b3e0d09 100644
--- a/opensearchapi/api_cat-allocation-params.go
+++ b/opensearchapi/api_cat-allocation-params.go
@@ -46,6 +46,7 @@ type CatAllocationParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r CatAllocationParams) get() map[string]string {
@@ -95,6 +96,10 @@ func (r CatAllocationParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	params["format"] = "json"
 
 	return params
diff --git a/opensearchapi/api_cat-cluster_manager-params.go b/opensearchapi/api_cat-cluster_manager-params.go
index 5324f5e..9f84c9d 100644
--- a/opensearchapi/api_cat-cluster_manager-params.go
+++ b/opensearchapi/api_cat-cluster_manager-params.go
@@ -44,6 +44,7 @@ type CatClusterManagerParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r CatClusterManagerParams) get() map[string]string {
@@ -85,6 +86,10 @@ func (r CatClusterManagerParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	params["format"] = "json"
 
 	return params
diff --git a/opensearchapi/api_cat-count-params.go b/opensearchapi/api_cat-count-params.go
index d734ec1..97223bd 100644
--- a/opensearchapi/api_cat-count-params.go
+++ b/opensearchapi/api_cat-count-params.go
@@ -40,6 +40,7 @@ type CatCountParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r CatCountParams) get() map[string]string {
@@ -69,6 +70,10 @@ func (r CatCountParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	params["format"] = "json"
 
 	return params
diff --git a/opensearchapi/api_cat-fielddata-params.go b/opensearchapi/api_cat-fielddata-params.go
index 4777669..9a7fdde 100644
--- a/opensearchapi/api_cat-fielddata-params.go
+++ b/opensearchapi/api_cat-fielddata-params.go
@@ -41,6 +41,7 @@ type CatFieldDataParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r CatFieldDataParams) get() map[string]string {
@@ -74,6 +75,10 @@ func (r CatFieldDataParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	params["format"] = "json"
 
 	return params
diff --git a/opensearchapi/api_cat-health-params.go b/opensearchapi/api_cat-health-params.go
index 3c42333..b30a9dc 100644
--- a/opensearchapi/api_cat-health-params.go
+++ b/opensearchapi/api_cat-health-params.go
@@ -42,6 +42,7 @@ type CatHealthParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r CatHealthParams) get() map[string]string {
@@ -79,6 +80,10 @@ func (r CatHealthParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	params["format"] = "json"
 
 	return params
diff --git a/opensearchapi/api_cat-indices-params.go b/opensearchapi/api_cat-indices-params.go
index cca17cc..ddbaab3 100644
--- a/opensearchapi/api_cat-indices-params.go
+++ b/opensearchapi/api_cat-indices-params.go
@@ -50,6 +50,7 @@ type CatIndicesParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r CatIndicesParams) get() map[string]string {
@@ -115,6 +116,10 @@ func (r CatIndicesParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	params["format"] = "json"
 
 	return params
diff --git a/opensearchapi/api_cat-master-params.go b/opensearchapi/api_cat-master-params.go
index 1f9eefd..cbfec36 100644
--- a/opensearchapi/api_cat-master-params.go
+++ b/opensearchapi/api_cat-master-params.go
@@ -44,6 +44,7 @@ type CatMasterParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r CatMasterParams) get() map[string]string {
@@ -85,6 +86,10 @@ func (r CatMasterParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	params["format"] = "json"
 
 	return params
diff --git a/opensearchapi/api_cat-nodeattrs-params.go b/opensearchapi/api_cat-nodeattrs-params.go
index 49e418a..a53669e 100644
--- a/opensearchapi/api_cat-nodeattrs-params.go
+++ b/opensearchapi/api_cat-nodeattrs-params.go
@@ -44,6 +44,7 @@ type CatNodeAttrsParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r CatNodeAttrsParams) get() map[string]string {
@@ -85,6 +86,10 @@ func (r CatNodeAttrsParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	params["format"] = "json"
 
 	return params
diff --git a/opensearchapi/api_cat-nodes-params.go b/opensearchapi/api_cat-nodes-params.go
index e986d33..3d13502 100644
--- a/opensearchapi/api_cat-nodes-params.go
+++ b/opensearchapi/api_cat-nodes-params.go
@@ -48,6 +48,7 @@ type CatNodesParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r CatNodesParams) get() map[string]string {
@@ -105,6 +106,10 @@ func (r CatNodesParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	params["format"] = "json"
 
 	return params
diff --git a/opensearchapi/api_cat-pending_tasks-params.go b/opensearchapi/api_cat-pending_tasks-params.go
index c9b07a6..db2aa45 100644
--- a/opensearchapi/api_cat-pending_tasks-params.go
+++ b/opensearchapi/api_cat-pending_tasks-params.go
@@ -45,6 +45,7 @@ type CatPendingTasksParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r CatPendingTasksParams) get() map[string]string {
@@ -90,6 +91,10 @@ func (r CatPendingTasksParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	params["format"] = "json"
 
 	return params
diff --git a/opensearchapi/api_cat-plugins-params.go b/opensearchapi/api_cat-plugins-params.go
index 03670a0..c7e06c0 100644
--- a/opensearchapi/api_cat-plugins-params.go
+++ b/opensearchapi/api_cat-plugins-params.go
@@ -44,6 +44,7 @@ type CatPluginsParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r CatPluginsParams) get() map[string]string {
@@ -85,6 +86,10 @@ func (r CatPluginsParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	params["format"] = "json"
 
 	return params
diff --git a/opensearchapi/api_cat-recovery-params.go b/opensearchapi/api_cat-recovery-params.go
index c343c01..6cdacbd 100644
--- a/opensearchapi/api_cat-recovery-params.go
+++ b/opensearchapi/api_cat-recovery-params.go
@@ -44,6 +44,7 @@ type CatRecoveryParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r CatRecoveryParams) get() map[string]string {
@@ -89,6 +90,10 @@ func (r CatRecoveryParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	params["format"] = "json"
 
 	return params
diff --git a/opensearchapi/api_cat-repositories-params.go b/opensearchapi/api_cat-repositories-params.go
index ab193d9..75aeb0c 100644
--- a/opensearchapi/api_cat-repositories-params.go
+++ b/opensearchapi/api_cat-repositories-params.go
@@ -44,6 +44,7 @@ type CatRepositoriesParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r CatRepositoriesParams) get() map[string]string {
@@ -85,6 +86,10 @@ func (r CatRepositoriesParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	params["format"] = "json"
 
 	return params
diff --git a/opensearchapi/api_cat-segments-params.go b/opensearchapi/api_cat-segments-params.go
index daf2df8..4880a13 100644
--- a/opensearchapi/api_cat-segments-params.go
+++ b/opensearchapi/api_cat-segments-params.go
@@ -45,6 +45,7 @@ type CatSegmentsParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r CatSegmentsParams) get() map[string]string {
@@ -90,6 +91,10 @@ func (r CatSegmentsParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	params["format"] = "json"
 
 	return params
diff --git a/opensearchapi/api_cat-shards-params.go b/opensearchapi/api_cat-shards-params.go
index ea29be4..7abd13f 100644
--- a/opensearchapi/api_cat-shards-params.go
+++ b/opensearchapi/api_cat-shards-params.go
@@ -46,6 +46,7 @@ type CatShardsParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r CatShardsParams) get() map[string]string {
@@ -95,6 +96,10 @@ func (r CatShardsParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	params["format"] = "json"
 
 	return params
diff --git a/opensearchapi/api_cat-snapshots-params.go b/opensearchapi/api_cat-snapshots-params.go
index 16cec68..b735126 100644
--- a/opensearchapi/api_cat-snapshots-params.go
+++ b/opensearchapi/api_cat-snapshots-params.go
@@ -45,6 +45,7 @@ type CatSnapshotsParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r CatSnapshotsParams) get() map[string]string {
@@ -90,6 +91,10 @@ func (r CatSnapshotsParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	params["format"] = "json"
 
 	return params
diff --git a/opensearchapi/api_cat-tasks-params.go b/opensearchapi/api_cat-tasks-params.go
index c120d18..a209dd2 100644
--- a/opensearchapi/api_cat-tasks-params.go
+++ b/opensearchapi/api_cat-tasks-params.go
@@ -46,6 +46,7 @@ type CatTasksParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r CatTasksParams) get() map[string]string {
@@ -99,6 +100,10 @@ func (r CatTasksParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	params["format"] = "json"
 
 	return params
diff --git a/opensearchapi/api_cat-templates-params.go b/opensearchapi/api_cat-templates-params.go
index 71a0287..573c203 100644
--- a/opensearchapi/api_cat-templates-params.go
+++ b/opensearchapi/api_cat-templates-params.go
@@ -44,6 +44,7 @@ type CatTemplatesParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r CatTemplatesParams) get() map[string]string {
@@ -85,6 +86,10 @@ func (r CatTemplatesParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	params["format"] = "json"
 
 	return params
diff --git a/opensearchapi/api_cat-thread_pool-params.go b/opensearchapi/api_cat-thread_pool-params.go
index b84c961..3dcb9bf 100644
--- a/opensearchapi/api_cat-thread_pool-params.go
+++ b/opensearchapi/api_cat-thread_pool-params.go
@@ -44,6 +44,7 @@ type CatThreadPoolParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r CatThreadPoolParams) get() map[string]string {
@@ -85,6 +86,10 @@ func (r CatThreadPoolParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	params["format"] = "json"
 
 	return params
diff --git a/opensearchapi/api_cluster-allocation_explain-params.go b/opensearchapi/api_cluster-allocation_explain-params.go
index bd31edf..b0ac3e2 100644
--- a/opensearchapi/api_cluster-allocation_explain-params.go
+++ b/opensearchapi/api_cluster-allocation_explain-params.go
@@ -28,6 +28,7 @@ package opensearchapi
 
 import (
 	"strconv"
+	"strings"
 )
 
 // ClusterAllocationExplainParams represents possible parameters for the ClusterAllocationExplainReq
@@ -38,6 +39,7 @@ type ClusterAllocationExplainParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r ClusterAllocationExplainParams) get() map[string]string {
@@ -63,5 +65,9 @@ func (r ClusterAllocationExplainParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_cluster-decommission-params.go b/opensearchapi/api_cluster-decommission-params.go
index b09080c..b88f30f 100644
--- a/opensearchapi/api_cluster-decommission-params.go
+++ b/opensearchapi/api_cluster-decommission-params.go
@@ -26,11 +26,14 @@
 
 package opensearchapi
 
+import "strings"
+
 // ClusterPutDecommissionParams represents possible parameters for the ClusterPutDecommissionReq
 type ClusterPutDecommissionParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r ClusterPutDecommissionParams) get() map[string]string {
@@ -48,6 +51,10 @@ func (r ClusterPutDecommissionParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
 
@@ -56,6 +63,7 @@ type ClusterGetDecommissionParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r ClusterGetDecommissionParams) get() map[string]string {
@@ -73,6 +81,10 @@ func (r ClusterGetDecommissionParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
 
@@ -81,6 +93,7 @@ type ClusterDeleteDecommissionParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r ClusterDeleteDecommissionParams) get() map[string]string {
@@ -98,5 +111,9 @@ func (r ClusterDeleteDecommissionParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_cluster-health-params.go b/opensearchapi/api_cluster-health-params.go
index ad2add7..1447335 100644
--- a/opensearchapi/api_cluster-health-params.go
+++ b/opensearchapi/api_cluster-health-params.go
@@ -28,6 +28,7 @@ package opensearchapi
 
 import (
 	"strconv"
+	"strings"
 	"time"
 )
 
@@ -49,6 +50,7 @@ type ClusterHealthParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r ClusterHealthParams) get() map[string]string {
@@ -114,5 +116,9 @@ func (r ClusterHealthParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_cluster-pending_tasks-params.go b/opensearchapi/api_cluster-pending_tasks-params.go
index e3a7b64..7deda2a 100644
--- a/opensearchapi/api_cluster-pending_tasks-params.go
+++ b/opensearchapi/api_cluster-pending_tasks-params.go
@@ -28,6 +28,7 @@ package opensearchapi
 
 import (
 	"strconv"
+	"strings"
 	"time"
 )
 
@@ -39,6 +40,7 @@ type ClusterPendingTasksParams struct {
 	Pretty                bool
 	Human                 bool
 	ErrorTrace            bool
+	FilterPath            []string
 }
 
 func (r ClusterPendingTasksParams) get() map[string]string {
@@ -68,5 +70,9 @@ func (r ClusterPendingTasksParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_cluster-remote_info-params.go b/opensearchapi/api_cluster-remote_info-params.go
index 6c99b9d..52118ac 100644
--- a/opensearchapi/api_cluster-remote_info-params.go
+++ b/opensearchapi/api_cluster-remote_info-params.go
@@ -26,11 +26,14 @@
 
 package opensearchapi
 
+import "strings"
+
 // ClusterRemoteInfoParams represents possible parameters for the ClusterRemoteInfoReq
 type ClusterRemoteInfoParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r ClusterRemoteInfoParams) get() map[string]string {
@@ -48,5 +51,9 @@ func (r ClusterRemoteInfoParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_cluster-reroute-params.go b/opensearchapi/api_cluster-reroute-params.go
index f2caf5f..340f659 100644
--- a/opensearchapi/api_cluster-reroute-params.go
+++ b/opensearchapi/api_cluster-reroute-params.go
@@ -45,6 +45,7 @@ type ClusterRerouteParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r ClusterRerouteParams) get() map[string]string {
@@ -90,5 +91,9 @@ func (r ClusterRerouteParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_cluster-settings-params.go b/opensearchapi/api_cluster-settings-params.go
index 7cd53f8..5241561 100644
--- a/opensearchapi/api_cluster-settings-params.go
+++ b/opensearchapi/api_cluster-settings-params.go
@@ -28,6 +28,7 @@ package opensearchapi
 
 import (
 	"strconv"
+	"strings"
 	"time"
 )
 
@@ -42,6 +43,7 @@ type ClusterGetSettingsParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r ClusterGetSettingsParams) get() map[string]string {
@@ -79,6 +81,10 @@ func (r ClusterGetSettingsParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
 
@@ -92,6 +98,7 @@ type ClusterPutSettingsParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r ClusterPutSettingsParams) get() map[string]string {
@@ -125,5 +132,9 @@ func (r ClusterPutSettingsParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_cluster-state-params.go b/opensearchapi/api_cluster-state-params.go
index 0ec7974..12e63cc 100644
--- a/opensearchapi/api_cluster-state-params.go
+++ b/opensearchapi/api_cluster-state-params.go
@@ -28,6 +28,7 @@ package opensearchapi
 
 import (
 	"strconv"
+	"strings"
 	"time"
 )
 
@@ -46,6 +47,7 @@ type ClusterStateParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r ClusterStateParams) get() map[string]string {
@@ -99,5 +101,9 @@ func (r ClusterStateParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_cluster-stats-params.go b/opensearchapi/api_cluster-stats-params.go
index 6302787..ca5df51 100644
--- a/opensearchapi/api_cluster-stats-params.go
+++ b/opensearchapi/api_cluster-stats-params.go
@@ -27,6 +27,7 @@
 package opensearchapi
 
 import (
+	"strings"
 	"time"
 )
 
@@ -37,6 +38,7 @@ type ClusterStatsParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r ClusterStatsParams) get() map[string]string {
@@ -58,5 +60,9 @@ func (r ClusterStatsParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_cluster-voting_config_exclusions-params.go b/opensearchapi/api_cluster-voting_config_exclusions-params.go
index ac17833..66dd56c 100644
--- a/opensearchapi/api_cluster-voting_config_exclusions-params.go
+++ b/opensearchapi/api_cluster-voting_config_exclusions-params.go
@@ -28,6 +28,7 @@ package opensearchapi
 
 import (
 	"strconv"
+	"strings"
 	"time"
 )
 
@@ -40,6 +41,7 @@ type ClusterPostVotingConfigExclusionsParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r ClusterPostVotingConfigExclusionsParams) get() map[string]string {
@@ -69,6 +71,10 @@ func (r ClusterPostVotingConfigExclusionsParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
 
@@ -79,6 +85,7 @@ type ClusterDeleteVotingConfigExclusionsParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r ClusterDeleteVotingConfigExclusionsParams) get() map[string]string {
@@ -100,5 +107,9 @@ func (r ClusterDeleteVotingConfigExclusionsParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_component_template-create-params.go b/opensearchapi/api_component_template-create-params.go
index 8fa51ed..2d6aa0d 100644
--- a/opensearchapi/api_component_template-create-params.go
+++ b/opensearchapi/api_component_template-create-params.go
@@ -28,6 +28,7 @@ package opensearchapi
 
 import (
 	"strconv"
+	"strings"
 	"time"
 )
 
@@ -41,6 +42,7 @@ type ComponentTemplateCreateParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r ComponentTemplateCreateParams) get() map[string]string {
@@ -74,5 +76,9 @@ func (r ComponentTemplateCreateParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_component_template-delete-params.go b/opensearchapi/api_component_template-delete-params.go
index e150f64..b63318c 100644
--- a/opensearchapi/api_component_template-delete-params.go
+++ b/opensearchapi/api_component_template-delete-params.go
@@ -27,6 +27,7 @@
 package opensearchapi
 
 import (
+	"strings"
 	"time"
 )
 
@@ -39,6 +40,7 @@ type ComponentTemplateDeleteParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r ComponentTemplateDeleteParams) get() map[string]string {
@@ -68,5 +70,9 @@ func (r ComponentTemplateDeleteParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_component_template-exists-params.go b/opensearchapi/api_component_template-exists-params.go
index effeed6..4e77792 100644
--- a/opensearchapi/api_component_template-exists-params.go
+++ b/opensearchapi/api_component_template-exists-params.go
@@ -28,6 +28,7 @@ package opensearchapi
 
 import (
 	"strconv"
+	"strings"
 	"time"
 )
 
@@ -40,6 +41,7 @@ type ComponentTemplateExistsParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r ComponentTemplateExistsParams) get() map[string]string {
@@ -69,5 +71,9 @@ func (r ComponentTemplateExistsParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_component_template-get-params.go b/opensearchapi/api_component_template-get-params.go
index cb73cf3..c9b207c 100644
--- a/opensearchapi/api_component_template-get-params.go
+++ b/opensearchapi/api_component_template-get-params.go
@@ -28,6 +28,7 @@ package opensearchapi
 
 import (
 	"strconv"
+	"strings"
 	"time"
 )
 
@@ -40,6 +41,7 @@ type ComponentTemplateGetParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r ComponentTemplateGetParams) get() map[string]string {
@@ -69,5 +71,9 @@ func (r ComponentTemplateGetParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_dangling-delete-params.go b/opensearchapi/api_dangling-delete-params.go
index 4d785bc..d841377 100644
--- a/opensearchapi/api_dangling-delete-params.go
+++ b/opensearchapi/api_dangling-delete-params.go
@@ -28,6 +28,7 @@ package opensearchapi
 
 import (
 	"strconv"
+	"strings"
 	"time"
 )
 
@@ -41,6 +42,7 @@ type DanglingDeleteParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r DanglingDeleteParams) get() map[string]string {
@@ -74,5 +76,9 @@ func (r DanglingDeleteParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_dangling-get-params.go b/opensearchapi/api_dangling-get-params.go
index b76f382..8a47236 100644
--- a/opensearchapi/api_dangling-get-params.go
+++ b/opensearchapi/api_dangling-get-params.go
@@ -26,11 +26,14 @@
 
 package opensearchapi
 
+import "strings"
+
 // DanglingGetParams represents possible parameters for the DanglingGetReq
 type DanglingGetParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r DanglingGetParams) get() map[string]string {
@@ -48,5 +51,9 @@ func (r DanglingGetParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_dangling-import-params.go b/opensearchapi/api_dangling-import-params.go
index fb4858b..cd5302d 100644
--- a/opensearchapi/api_dangling-import-params.go
+++ b/opensearchapi/api_dangling-import-params.go
@@ -28,6 +28,7 @@ package opensearchapi
 
 import (
 	"strconv"
+	"strings"
 	"time"
 )
 
@@ -41,6 +42,7 @@ type DanglingImportParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r DanglingImportParams) get() map[string]string {
@@ -74,5 +76,9 @@ func (r DanglingImportParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_datastream-create-params.go b/opensearchapi/api_datastream-create-params.go
index 8e13bf8..00aa97a 100644
--- a/opensearchapi/api_datastream-create-params.go
+++ b/opensearchapi/api_datastream-create-params.go
@@ -26,11 +26,14 @@
 
 package opensearchapi
 
+import "strings"
+
 // DataStreamCreateParams represents possible parameters for the DataStreamCreateReq
 type DataStreamCreateParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r DataStreamCreateParams) get() map[string]string {
@@ -48,5 +51,9 @@ func (r DataStreamCreateParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_datastream-delete-params.go b/opensearchapi/api_datastream-delete-params.go
index d666a15..6aea4c0 100644
--- a/opensearchapi/api_datastream-delete-params.go
+++ b/opensearchapi/api_datastream-delete-params.go
@@ -26,7 +26,10 @@
 
 package opensearchapi
 
-import "time"
+import (
+	"strings"
+	"time"
+)
 
 // DataStreamDeleteParams represents possible parameters for the DataStreamDeleteReq
 type DataStreamDeleteParams struct {
@@ -36,6 +39,7 @@ type DataStreamDeleteParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r DataStreamDeleteParams) get() map[string]string {
@@ -61,5 +65,9 @@ func (r DataStreamDeleteParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_datastream-get-params.go b/opensearchapi/api_datastream-get-params.go
index 3e47878..8f1aaff 100644
--- a/opensearchapi/api_datastream-get-params.go
+++ b/opensearchapi/api_datastream-get-params.go
@@ -26,7 +26,10 @@
 
 package opensearchapi
 
-import "time"
+import (
+	"strings"
+	"time"
+)
 
 // DataStreamGetParams represents possible parameters for the DataStreamGetReq
 type DataStreamGetParams struct {
@@ -35,6 +38,7 @@ type DataStreamGetParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r DataStreamGetParams) get() map[string]string {
@@ -56,5 +60,9 @@ func (r DataStreamGetParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_datastream-stats-params.go b/opensearchapi/api_datastream-stats-params.go
index 55dc540..fb43a0c 100644
--- a/opensearchapi/api_datastream-stats-params.go
+++ b/opensearchapi/api_datastream-stats-params.go
@@ -26,7 +26,10 @@
 
 package opensearchapi
 
-import "time"
+import (
+	"strings"
+	"time"
+)
 
 // DataStreamStatsParams represents possible parameters for the DataStreamCreateReq
 type DataStreamStatsParams struct {
@@ -35,6 +38,7 @@ type DataStreamStatsParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r DataStreamStatsParams) get() map[string]string {
@@ -56,5 +60,9 @@ func (r DataStreamStatsParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_document-create-params.go b/opensearchapi/api_document-create-params.go
index 9c87e73..a3370d8 100644
--- a/opensearchapi/api_document-create-params.go
+++ b/opensearchapi/api_document-create-params.go
@@ -28,6 +28,7 @@ package opensearchapi
 
 import (
 	"strconv"
+	"strings"
 	"time"
 )
 
@@ -44,6 +45,7 @@ type DocumentCreateParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r DocumentCreateParams) get() map[string]string {
@@ -89,5 +91,9 @@ func (r DocumentCreateParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_document-delete-params.go b/opensearchapi/api_document-delete-params.go
index 69308d9..c1db103 100644
--- a/opensearchapi/api_document-delete-params.go
+++ b/opensearchapi/api_document-delete-params.go
@@ -28,6 +28,7 @@ package opensearchapi
 
 import (
 	"strconv"
+	"strings"
 	"time"
 )
 
@@ -45,6 +46,7 @@ type DocumentDeleteParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r DocumentDeleteParams) get() map[string]string {
@@ -94,5 +96,9 @@ func (r DocumentDeleteParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_document-delete_by_query-params.go b/opensearchapi/api_document-delete_by_query-params.go
index b6b1a4f..74c5a23 100644
--- a/opensearchapi/api_document-delete_by_query-params.go
+++ b/opensearchapi/api_document-delete_by_query-params.go
@@ -72,6 +72,7 @@ type DocumentDeleteByQueryParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r DocumentDeleteByQueryParams) get() map[string]string {
@@ -230,5 +231,9 @@ func (r DocumentDeleteByQueryParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_document-delete_by_query_rethrottle-params.go b/opensearchapi/api_document-delete_by_query_rethrottle-params.go
index af978ec..13fb6bc 100644
--- a/opensearchapi/api_document-delete_by_query_rethrottle-params.go
+++ b/opensearchapi/api_document-delete_by_query_rethrottle-params.go
@@ -28,6 +28,7 @@ package opensearchapi
 
 import (
 	"strconv"
+	"strings"
 )
 
 // DocumentDeleteByQueryRethrottleParams represents possible parameters for the DocumentDeleteByQueryRethrottleReq
@@ -37,6 +38,7 @@ type DocumentDeleteByQueryRethrottleParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r DocumentDeleteByQueryRethrottleParams) get() map[string]string {
@@ -58,5 +60,9 @@ func (r DocumentDeleteByQueryRethrottleParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_document-exists-params.go b/opensearchapi/api_document-exists-params.go
index 0ff9011..b6ce6b0 100644
--- a/opensearchapi/api_document-exists-params.go
+++ b/opensearchapi/api_document-exists-params.go
@@ -47,6 +47,7 @@ type DocumentExistsParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r DocumentExistsParams) get() map[string]string {
@@ -113,5 +114,9 @@ func (r DocumentExistsParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_document-exists_source-params.go b/opensearchapi/api_document-exists_source-params.go
index 965c200..3424507 100644
--- a/opensearchapi/api_document-exists_source-params.go
+++ b/opensearchapi/api_document-exists_source-params.go
@@ -46,6 +46,7 @@ type DocumentExistsSourceParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r DocumentExistsSourceParams) get() map[string]string {
@@ -108,5 +109,9 @@ func (r DocumentExistsSourceParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_document-explain-params.go b/opensearchapi/api_document-explain-params.go
index 0dafc9c..2578b4c 100644
--- a/opensearchapi/api_document-explain-params.go
+++ b/opensearchapi/api_document-explain-params.go
@@ -49,6 +49,7 @@ type DocumentExplainParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r DocumentExplainParams) get() map[string]string {
@@ -123,5 +124,9 @@ func (r DocumentExplainParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_document-get-params.go b/opensearchapi/api_document-get-params.go
index 7406c5b..5366a6b 100644
--- a/opensearchapi/api_document-get-params.go
+++ b/opensearchapi/api_document-get-params.go
@@ -47,6 +47,7 @@ type DocumentGetParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r DocumentGetParams) get() map[string]string {
@@ -113,5 +114,9 @@ func (r DocumentGetParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_document-source-params.go b/opensearchapi/api_document-source-params.go
index 566d5b0..ef1258c 100644
--- a/opensearchapi/api_document-source-params.go
+++ b/opensearchapi/api_document-source-params.go
@@ -47,6 +47,7 @@ type DocumentSourceParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r DocumentSourceParams) get() map[string]string {
@@ -109,5 +110,9 @@ func (r DocumentSourceParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_index-params.go b/opensearchapi/api_index-params.go
index 97fb631..39ad203 100644
--- a/opensearchapi/api_index-params.go
+++ b/opensearchapi/api_index-params.go
@@ -28,6 +28,7 @@ package opensearchapi
 
 import (
 	"strconv"
+	"strings"
 	"time"
 )
 
@@ -48,6 +49,7 @@ type IndexParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r IndexParams) get() map[string]string {
@@ -109,5 +111,9 @@ func (r IndexParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_index_template-create-params.go b/opensearchapi/api_index_template-create-params.go
index 9eb9f4c..0253cc7 100644
--- a/opensearchapi/api_index_template-create-params.go
+++ b/opensearchapi/api_index_template-create-params.go
@@ -28,6 +28,7 @@ package opensearchapi
 
 import (
 	"strconv"
+	"strings"
 	"time"
 )
 
@@ -41,6 +42,7 @@ type IndexTemplateCreateParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r IndexTemplateCreateParams) get() map[string]string {
@@ -74,5 +76,9 @@ func (r IndexTemplateCreateParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_index_template-delete-params.go b/opensearchapi/api_index_template-delete-params.go
index d337ed6..3a86b8e 100644
--- a/opensearchapi/api_index_template-delete-params.go
+++ b/opensearchapi/api_index_template-delete-params.go
@@ -27,6 +27,7 @@
 package opensearchapi
 
 import (
+	"strings"
 	"time"
 )
 
@@ -39,6 +40,7 @@ type IndexTemplateDeleteParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r IndexTemplateDeleteParams) get() map[string]string {
@@ -68,5 +70,9 @@ func (r IndexTemplateDeleteParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_index_template-exists-params.go b/opensearchapi/api_index_template-exists-params.go
index 95a3c71..2d99595 100644
--- a/opensearchapi/api_index_template-exists-params.go
+++ b/opensearchapi/api_index_template-exists-params.go
@@ -28,6 +28,7 @@ package opensearchapi
 
 import (
 	"strconv"
+	"strings"
 	"time"
 )
 
@@ -41,6 +42,7 @@ type IndexTemplateExistsParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r IndexTemplateExistsParams) get() map[string]string {
@@ -74,5 +76,9 @@ func (r IndexTemplateExistsParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_index_template-get-params.go b/opensearchapi/api_index_template-get-params.go
index bea907b..39fae17 100644
--- a/opensearchapi/api_index_template-get-params.go
+++ b/opensearchapi/api_index_template-get-params.go
@@ -28,6 +28,7 @@ package opensearchapi
 
 import (
 	"strconv"
+	"strings"
 	"time"
 )
 
@@ -41,6 +42,7 @@ type IndexTemplateGetParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r IndexTemplateGetParams) get() map[string]string {
@@ -74,5 +76,9 @@ func (r IndexTemplateGetParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_index_template-simulate-params.go b/opensearchapi/api_index_template-simulate-params.go
index 488c78c..7a5fa30 100644
--- a/opensearchapi/api_index_template-simulate-params.go
+++ b/opensearchapi/api_index_template-simulate-params.go
@@ -28,6 +28,7 @@ package opensearchapi
 
 import (
 	"strconv"
+	"strings"
 	"time"
 )
 
@@ -41,6 +42,7 @@ type IndexTemplateSimulateParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r IndexTemplateSimulateParams) get() map[string]string {
@@ -74,5 +76,9 @@ func (r IndexTemplateSimulateParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_index_template-simulate_index-params.go b/opensearchapi/api_index_template-simulate_index-params.go
index c437a90..8395d24 100644
--- a/opensearchapi/api_index_template-simulate_index-params.go
+++ b/opensearchapi/api_index_template-simulate_index-params.go
@@ -28,6 +28,7 @@ package opensearchapi
 
 import (
 	"strconv"
+	"strings"
 	"time"
 )
 
@@ -41,6 +42,7 @@ type IndexTemplateSimulateIndexParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r IndexTemplateSimulateIndexParams) get() map[string]string {
@@ -74,5 +76,9 @@ func (r IndexTemplateSimulateIndexParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_indices-alias-params.go b/opensearchapi/api_indices-alias-params.go
index eafa539..33c96ad 100644
--- a/opensearchapi/api_indices-alias-params.go
+++ b/opensearchapi/api_indices-alias-params.go
@@ -28,6 +28,7 @@ package opensearchapi
 
 import (
 	"strconv"
+	"strings"
 	"time"
 )
 
@@ -40,6 +41,7 @@ type AliasDeleteParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r AliasDeleteParams) get() map[string]string {
@@ -69,6 +71,10 @@ func (r AliasDeleteParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
 
@@ -82,6 +88,7 @@ type AliasGetParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r AliasGetParams) get() map[string]string {
@@ -115,6 +122,10 @@ func (r AliasGetParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
 
@@ -127,6 +138,7 @@ type AliasPutParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r AliasPutParams) get() map[string]string {
@@ -156,6 +168,10 @@ func (r AliasPutParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
 
@@ -169,6 +185,7 @@ type AliasExistsParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r AliasExistsParams) get() map[string]string {
@@ -202,5 +219,9 @@ func (r AliasExistsParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_indices-analyze-params.go b/opensearchapi/api_indices-analyze-params.go
index f1052ba..2d32a23 100644
--- a/opensearchapi/api_indices-analyze-params.go
+++ b/opensearchapi/api_indices-analyze-params.go
@@ -26,11 +26,14 @@
 
 package opensearchapi
 
+import "strings"
+
 // IndicesAnalyzeParams represents possible parameters for the IndicesAnalyzeReq
 type IndicesAnalyzeParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r IndicesAnalyzeParams) get() map[string]string {
@@ -48,5 +51,9 @@ func (r IndicesAnalyzeParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_indices-block-params.go b/opensearchapi/api_indices-block-params.go
index c1577e8..f951b83 100644
--- a/opensearchapi/api_indices-block-params.go
+++ b/opensearchapi/api_indices-block-params.go
@@ -28,6 +28,7 @@ package opensearchapi
 
 import (
 	"strconv"
+	"strings"
 	"time"
 )
 
@@ -43,6 +44,7 @@ type IndicesBlockParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r IndicesBlockParams) get() map[string]string {
@@ -84,5 +86,9 @@ func (r IndicesBlockParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_indices-cache-params.go b/opensearchapi/api_indices-cache-params.go
index 5a98211..f054bad 100644
--- a/opensearchapi/api_indices-cache-params.go
+++ b/opensearchapi/api_indices-cache-params.go
@@ -44,6 +44,7 @@ type IndicesClearCacheParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r IndicesClearCacheParams) get() map[string]string {
@@ -89,5 +90,9 @@ func (r IndicesClearCacheParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_indices-clone-params.go b/opensearchapi/api_indices-clone-params.go
index 414ca22..d9d9fe3 100644
--- a/opensearchapi/api_indices-clone-params.go
+++ b/opensearchapi/api_indices-clone-params.go
@@ -27,6 +27,7 @@
 package opensearchapi
 
 import (
+	"strings"
 	"time"
 )
 
@@ -40,6 +41,7 @@ type IndicesCloneParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r IndicesCloneParams) get() map[string]string {
@@ -69,5 +71,9 @@ func (r IndicesCloneParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_indices-close-params.go b/opensearchapi/api_indices-close-params.go
index 2eb19e7..cf4ce42 100644
--- a/opensearchapi/api_indices-close-params.go
+++ b/opensearchapi/api_indices-close-params.go
@@ -28,6 +28,7 @@ package opensearchapi
 
 import (
 	"strconv"
+	"strings"
 	"time"
 )
 
@@ -44,6 +45,7 @@ type IndicesCloseParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r IndicesCloseParams) get() map[string]string {
@@ -89,5 +91,9 @@ func (r IndicesCloseParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_indices-count-params.go b/opensearchapi/api_indices-count-params.go
index 204c16e..22945c6 100644
--- a/opensearchapi/api_indices-count-params.go
+++ b/opensearchapi/api_indices-count-params.go
@@ -51,6 +51,7 @@ type IndicesCountParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r IndicesCountParams) get() map[string]string {
@@ -124,5 +125,9 @@ func (r IndicesCountParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_indices-create-params.go b/opensearchapi/api_indices-create-params.go
index c21781a..52abd6a 100644
--- a/opensearchapi/api_indices-create-params.go
+++ b/opensearchapi/api_indices-create-params.go
@@ -27,6 +27,7 @@
 package opensearchapi
 
 import (
+	"strings"
 	"time"
 )
 
@@ -40,6 +41,7 @@ type IndicesCreateParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r IndicesCreateParams) get() map[string]string {
@@ -72,5 +74,9 @@ func (r IndicesCreateParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_indices-delete-params.go b/opensearchapi/api_indices-delete-params.go
index d862ba7..a63fdfd 100644
--- a/opensearchapi/api_indices-delete-params.go
+++ b/opensearchapi/api_indices-delete-params.go
@@ -28,6 +28,7 @@ package opensearchapi
 
 import (
 	"strconv"
+	"strings"
 	"time"
 )
 
@@ -43,6 +44,7 @@ type IndicesDeleteParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r IndicesDeleteParams) get() map[string]string {
@@ -83,5 +85,9 @@ func (r IndicesDeleteParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_indices-exists-params.go b/opensearchapi/api_indices-exists-params.go
index 9a56e50..424d5f4 100644
--- a/opensearchapi/api_indices-exists-params.go
+++ b/opensearchapi/api_indices-exists-params.go
@@ -26,7 +26,10 @@
 
 package opensearchapi
 
-import "strconv"
+import (
+	"strconv"
+	"strings"
+)
 
 // IndicesExistsParams represents possible parameters for the IndicesExistsReq
 type IndicesExistsParams struct {
@@ -40,6 +43,7 @@ type IndicesExistsParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r IndicesExistsParams) get() map[string]string {
@@ -81,5 +85,9 @@ func (r IndicesExistsParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_indices-field_caps-params.go b/opensearchapi/api_indices-field_caps-params.go
index cb0d5e2..46bd291 100644
--- a/opensearchapi/api_indices-field_caps-params.go
+++ b/opensearchapi/api_indices-field_caps-params.go
@@ -42,6 +42,7 @@ type IndicesFieldCapsParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r IndicesFieldCapsParams) get() map[string]string {
@@ -79,5 +80,9 @@ func (r IndicesFieldCapsParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_indices-flush-params.go b/opensearchapi/api_indices-flush-params.go
index 7e70370..ab660d5 100644
--- a/opensearchapi/api_indices-flush-params.go
+++ b/opensearchapi/api_indices-flush-params.go
@@ -28,6 +28,7 @@ package opensearchapi
 
 import (
 	"strconv"
+	"strings"
 )
 
 // IndicesFlushParams represents possible parameters for the IndicesFlushReq
@@ -41,6 +42,7 @@ type IndicesFlushParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r IndicesFlushParams) get() map[string]string {
@@ -78,5 +80,9 @@ func (r IndicesFlushParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_indices-forcemerge-params.go b/opensearchapi/api_indices-forcemerge-params.go
index 4602fed..9870bf8 100644
--- a/opensearchapi/api_indices-forcemerge-params.go
+++ b/opensearchapi/api_indices-forcemerge-params.go
@@ -28,6 +28,7 @@ package opensearchapi
 
 import (
 	"strconv"
+	"strings"
 )
 
 // IndicesForcemergeParams represents possible parameters for the IndicesForcemergeReq
@@ -42,6 +43,7 @@ type IndicesForcemergeParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r IndicesForcemergeParams) get() map[string]string {
@@ -83,5 +85,9 @@ func (r IndicesForcemergeParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_indices-get-params.go b/opensearchapi/api_indices-get-params.go
index 0046c6a..7be10ee 100644
--- a/opensearchapi/api_indices-get-params.go
+++ b/opensearchapi/api_indices-get-params.go
@@ -28,6 +28,7 @@ package opensearchapi
 
 import (
 	"strconv"
+	"strings"
 	"time"
 )
 
@@ -45,6 +46,7 @@ type IndicesGetParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r IndicesGetParams) get() map[string]string {
@@ -94,5 +96,9 @@ func (r IndicesGetParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_indices-mapping-params.go b/opensearchapi/api_indices-mapping-params.go
index 87467dc..1aaa66b 100644
--- a/opensearchapi/api_indices-mapping-params.go
+++ b/opensearchapi/api_indices-mapping-params.go
@@ -28,6 +28,7 @@ package opensearchapi
 
 import (
 	"strconv"
+	"strings"
 	"time"
 )
 
@@ -43,6 +44,7 @@ type MappingGetParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r MappingGetParams) get() map[string]string {
@@ -84,6 +86,10 @@ func (r MappingGetParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
 
@@ -100,6 +106,7 @@ type MappingPutParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r MappingPutParams) get() map[string]string {
@@ -145,5 +152,9 @@ func (r MappingPutParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_indices-open-params.go b/opensearchapi/api_indices-open-params.go
index 4f51057..9e43944 100644
--- a/opensearchapi/api_indices-open-params.go
+++ b/opensearchapi/api_indices-open-params.go
@@ -28,6 +28,7 @@ package opensearchapi
 
 import (
 	"strconv"
+	"strings"
 	"time"
 )
 
@@ -44,6 +45,7 @@ type IndicesOpenParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r IndicesOpenParams) get() map[string]string {
@@ -89,5 +91,9 @@ func (r IndicesOpenParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_indices-recovery-params.go b/opensearchapi/api_indices-recovery-params.go
index d7e4b7f..83426b1 100644
--- a/opensearchapi/api_indices-recovery-params.go
+++ b/opensearchapi/api_indices-recovery-params.go
@@ -28,6 +28,7 @@ package opensearchapi
 
 import (
 	"strconv"
+	"strings"
 )
 
 // IndicesRecoveryParams represents possible parameters for the IndicesShrinkReq
@@ -38,6 +39,7 @@ type IndicesRecoveryParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r IndicesRecoveryParams) get() map[string]string {
@@ -63,5 +65,9 @@ func (r IndicesRecoveryParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_indices-refresh-params.go b/opensearchapi/api_indices-refresh-params.go
index 7cc9604..3b72da9 100644
--- a/opensearchapi/api_indices-refresh-params.go
+++ b/opensearchapi/api_indices-refresh-params.go
@@ -28,6 +28,7 @@ package opensearchapi
 
 import (
 	"strconv"
+	"strings"
 )
 
 // IndicesRefreshParams represents possible parameters for the IndicesRefreshReq
@@ -39,6 +40,7 @@ type IndicesRefreshParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r IndicesRefreshParams) get() map[string]string {
@@ -68,5 +70,9 @@ func (r IndicesRefreshParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_indices-resolve-params.go b/opensearchapi/api_indices-resolve-params.go
index 2b19b2b..4e4b46e 100644
--- a/opensearchapi/api_indices-resolve-params.go
+++ b/opensearchapi/api_indices-resolve-params.go
@@ -26,6 +26,8 @@
 
 package opensearchapi
 
+import "strings"
+
 // IndicesResolveParams represents possible parameters for the IndicesResolveReq
 type IndicesResolveParams struct {
 	ExpandWildcards string
@@ -33,6 +35,7 @@ type IndicesResolveParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r IndicesResolveParams) get() map[string]string {
@@ -54,5 +57,9 @@ func (r IndicesResolveParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_indices-rollover-params.go b/opensearchapi/api_indices-rollover-params.go
index a3fef77..10476f0 100644
--- a/opensearchapi/api_indices-rollover-params.go
+++ b/opensearchapi/api_indices-rollover-params.go
@@ -28,6 +28,7 @@ package opensearchapi
 
 import (
 	"strconv"
+	"strings"
 	"time"
 )
 
@@ -42,6 +43,7 @@ type IndicesRolloverParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r IndicesRolloverParams) get() map[string]string {
@@ -79,5 +81,9 @@ func (r IndicesRolloverParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_indices-segments-params.go b/opensearchapi/api_indices-segments-params.go
index d726ec5..dda0a72 100644
--- a/opensearchapi/api_indices-segments-params.go
+++ b/opensearchapi/api_indices-segments-params.go
@@ -28,6 +28,7 @@ package opensearchapi
 
 import (
 	"strconv"
+	"strings"
 )
 
 // IndicesSegmentsParams represents possible parameters for the IndicesSegmentsReq
@@ -40,6 +41,7 @@ type IndicesSegmentsParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r IndicesSegmentsParams) get() map[string]string {
@@ -73,5 +75,9 @@ func (r IndicesSegmentsParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_indices-settings-params.go b/opensearchapi/api_indices-settings-params.go
index e7537ab..f22fc67 100644
--- a/opensearchapi/api_indices-settings-params.go
+++ b/opensearchapi/api_indices-settings-params.go
@@ -28,6 +28,7 @@ package opensearchapi
 
 import (
 	"strconv"
+	"strings"
 	"time"
 )
 
@@ -45,6 +46,7 @@ type SettingsGetParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r SettingsGetParams) get() map[string]string {
@@ -94,6 +96,10 @@ func (r SettingsGetParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
 
@@ -111,6 +117,7 @@ type SettingsPutParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r SettingsPutParams) get() map[string]string {
@@ -160,5 +167,9 @@ func (r SettingsPutParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_indices-shardstores-params.go b/opensearchapi/api_indices-shardstores-params.go
index 24085c4..b9c4c7c 100644
--- a/opensearchapi/api_indices-shardstores-params.go
+++ b/opensearchapi/api_indices-shardstores-params.go
@@ -41,6 +41,7 @@ type IndicesShardStoresParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r IndicesShardStoresParams) get() map[string]string {
@@ -74,5 +75,9 @@ func (r IndicesShardStoresParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_indices-shrink-params.go b/opensearchapi/api_indices-shrink-params.go
index 3d889eb..08579b5 100644
--- a/opensearchapi/api_indices-shrink-params.go
+++ b/opensearchapi/api_indices-shrink-params.go
@@ -28,6 +28,7 @@ package opensearchapi
 
 import (
 	"strconv"
+	"strings"
 	"time"
 )
 
@@ -42,6 +43,7 @@ type IndicesShrinkParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r IndicesShrinkParams) get() map[string]string {
@@ -79,5 +81,9 @@ func (r IndicesShrinkParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_indices-split-params.go b/opensearchapi/api_indices-split-params.go
index 579d582..b0a8bd0 100644
--- a/opensearchapi/api_indices-split-params.go
+++ b/opensearchapi/api_indices-split-params.go
@@ -28,6 +28,7 @@ package opensearchapi
 
 import (
 	"strconv"
+	"strings"
 	"time"
 )
 
@@ -42,6 +43,7 @@ type IndicesSplitParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r IndicesSplitParams) get() map[string]string {
@@ -79,5 +81,9 @@ func (r IndicesSplitParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_indices-stats-params.go b/opensearchapi/api_indices-stats-params.go
index e48f37e..a883622 100644
--- a/opensearchapi/api_indices-stats-params.go
+++ b/opensearchapi/api_indices-stats-params.go
@@ -28,6 +28,7 @@ package opensearchapi
 
 import (
 	"strconv"
+	"strings"
 	"time"
 )
 
@@ -42,6 +43,7 @@ type IndicesStatsParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r IndicesStatsParams) get() map[string]string {
@@ -79,5 +81,9 @@ func (r IndicesStatsParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_indices-validate-params.go b/opensearchapi/api_indices-validate-params.go
index 4511586..837db32 100644
--- a/opensearchapi/api_indices-validate-params.go
+++ b/opensearchapi/api_indices-validate-params.go
@@ -28,6 +28,7 @@ package opensearchapi
 
 import (
 	"strconv"
+	"strings"
 )
 
 // IndicesValidateQueryParams represents possible parameters for the IndicesValidateQueryReq
@@ -48,6 +49,7 @@ type IndicesValidateQueryParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r IndicesValidateQueryParams) get() map[string]string {
@@ -113,5 +115,9 @@ func (r IndicesValidateQueryParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_info-params.go b/opensearchapi/api_info-params.go
index 33f4efb..d9e4c24 100644
--- a/opensearchapi/api_info-params.go
+++ b/opensearchapi/api_info-params.go
@@ -26,11 +26,14 @@
 
 package opensearchapi
 
+import "strings"
+
 // InfoParams represents possible parameters for the InfoReq
 type InfoParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r InfoParams) get() map[string]string {
@@ -48,5 +51,9 @@ func (r InfoParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_ingest-create-params.go b/opensearchapi/api_ingest-create-params.go
index 88ebc03..98cd308 100644
--- a/opensearchapi/api_ingest-create-params.go
+++ b/opensearchapi/api_ingest-create-params.go
@@ -26,7 +26,10 @@
 
 package opensearchapi
 
-import "time"
+import (
+	"strings"
+	"time"
+)
 
 // IngestCreateParams represents possible parameters for the IngestCreateReq
 type IngestCreateParams struct {
@@ -37,6 +40,7 @@ type IngestCreateParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r IngestCreateParams) get() map[string]string {
@@ -66,5 +70,9 @@ func (r IngestCreateParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_ingest-delete-params.go b/opensearchapi/api_ingest-delete-params.go
index d914462..777c6ae 100644
--- a/opensearchapi/api_ingest-delete-params.go
+++ b/opensearchapi/api_ingest-delete-params.go
@@ -26,7 +26,10 @@
 
 package opensearchapi
 
-import "time"
+import (
+	"strings"
+	"time"
+)
 
 // IngestDeleteParams represents possible parameters for the IngestDeleteReq
 type IngestDeleteParams struct {
@@ -37,6 +40,7 @@ type IngestDeleteParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r IngestDeleteParams) get() map[string]string {
@@ -66,5 +70,9 @@ func (r IngestDeleteParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_ingest-get-params.go b/opensearchapi/api_ingest-get-params.go
index afe8f1c..b61345b 100644
--- a/opensearchapi/api_ingest-get-params.go
+++ b/opensearchapi/api_ingest-get-params.go
@@ -28,6 +28,7 @@ package opensearchapi
 
 import (
 	"strconv"
+	"strings"
 	"time"
 )
 
@@ -40,6 +41,7 @@ type IngestGetParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r IngestGetParams) get() map[string]string {
@@ -69,5 +71,9 @@ func (r IngestGetParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_ingest-grok-params.go b/opensearchapi/api_ingest-grok-params.go
index b75987c..d67d923 100644
--- a/opensearchapi/api_ingest-grok-params.go
+++ b/opensearchapi/api_ingest-grok-params.go
@@ -26,11 +26,14 @@
 
 package opensearchapi
 
+import "strings"
+
 // IngestGrokParams represents possible parameters for the IngestGrokReq
 type IngestGrokParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r IngestGrokParams) get() map[string]string {
@@ -48,5 +51,9 @@ func (r IngestGrokParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_ingest-simulate-params.go b/opensearchapi/api_ingest-simulate-params.go
index 47e36e3..906762d 100644
--- a/opensearchapi/api_ingest-simulate-params.go
+++ b/opensearchapi/api_ingest-simulate-params.go
@@ -26,7 +26,10 @@
 
 package opensearchapi
 
-import "strconv"
+import (
+	"strconv"
+	"strings"
+)
 
 // IngestSimulateParams represents possible parameters for the IngestSimulateReq
 type IngestSimulateParams struct {
@@ -35,6 +38,7 @@ type IngestSimulateParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r IngestSimulateParams) get() map[string]string {
@@ -56,5 +60,9 @@ func (r IngestSimulateParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_mget-params.go b/opensearchapi/api_mget-params.go
index f047e18..eeda2e8 100644
--- a/opensearchapi/api_mget-params.go
+++ b/opensearchapi/api_mget-params.go
@@ -45,6 +45,7 @@ type MGetParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r MGetParams) get() map[string]string {
@@ -103,5 +104,9 @@ func (r MGetParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_msearch-params.go b/opensearchapi/api_msearch-params.go
index 46741e1..5e7efc8 100644
--- a/opensearchapi/api_msearch-params.go
+++ b/opensearchapi/api_msearch-params.go
@@ -28,6 +28,7 @@ package opensearchapi
 
 import (
 	"strconv"
+	"strings"
 )
 
 // MSearchParams represents possible parameters for the MSearchReq
@@ -43,6 +44,7 @@ type MSearchParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r MSearchParams) get() map[string]string {
@@ -88,5 +90,9 @@ func (r MSearchParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_msearch-template-params.go b/opensearchapi/api_msearch-template-params.go
index 845db9d..ac6739f 100644
--- a/opensearchapi/api_msearch-template-params.go
+++ b/opensearchapi/api_msearch-template-params.go
@@ -28,6 +28,7 @@ package opensearchapi
 
 import (
 	"strconv"
+	"strings"
 )
 
 // MSearchTemplateParams represents possible parameters for the MSearchTemplateReq
@@ -41,6 +42,7 @@ type MSearchTemplateParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r MSearchTemplateParams) get() map[string]string {
@@ -78,5 +80,9 @@ func (r MSearchTemplateParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_mtermvectors-params.go b/opensearchapi/api_mtermvectors-params.go
index cfa2644..706e28e 100644
--- a/opensearchapi/api_mtermvectors-params.go
+++ b/opensearchapi/api_mtermvectors-params.go
@@ -49,6 +49,7 @@ type MTermvectorsParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r MTermvectorsParams) get() map[string]string {
@@ -114,5 +115,9 @@ func (r MTermvectorsParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_nodes-hot_threads-params.go b/opensearchapi/api_nodes-hot_threads-params.go
index 8e2ae4c..6655182 100644
--- a/opensearchapi/api_nodes-hot_threads-params.go
+++ b/opensearchapi/api_nodes-hot_threads-params.go
@@ -28,6 +28,7 @@ package opensearchapi
 
 import (
 	"strconv"
+	"strings"
 	"time"
 )
 
@@ -42,6 +43,7 @@ type NodesHotThreadsParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r NodesHotThreadsParams) get() map[string]string {
@@ -79,5 +81,9 @@ func (r NodesHotThreadsParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_nodes-info-params.go b/opensearchapi/api_nodes-info-params.go
index 73feb40..1ec2129 100644
--- a/opensearchapi/api_nodes-info-params.go
+++ b/opensearchapi/api_nodes-info-params.go
@@ -28,6 +28,7 @@ package opensearchapi
 
 import (
 	"strconv"
+	"strings"
 	"time"
 )
 
@@ -39,6 +40,7 @@ type NodesInfoParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r NodesInfoParams) get() map[string]string {
@@ -64,5 +66,9 @@ func (r NodesInfoParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_nodes-reload_security-params.go b/opensearchapi/api_nodes-reload_security-params.go
index b1fb040..ed42e31 100644
--- a/opensearchapi/api_nodes-reload_security-params.go
+++ b/opensearchapi/api_nodes-reload_security-params.go
@@ -27,6 +27,7 @@
 package opensearchapi
 
 import (
+	"strings"
 	"time"
 )
 
@@ -37,6 +38,7 @@ type NodesReloadSecurityParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r NodesReloadSecurityParams) get() map[string]string {
@@ -58,5 +60,9 @@ func (r NodesReloadSecurityParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_nodes-stats-params.go b/opensearchapi/api_nodes-stats-params.go
index b9f592b..775ad5e 100644
--- a/opensearchapi/api_nodes-stats-params.go
+++ b/opensearchapi/api_nodes-stats-params.go
@@ -47,6 +47,7 @@ type NodesStatsParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r NodesStatsParams) get() map[string]string {
@@ -100,5 +101,9 @@ func (r NodesStatsParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_nodes-usage-params.go b/opensearchapi/api_nodes-usage-params.go
index a1e2fd4..956477f 100644
--- a/opensearchapi/api_nodes-usage-params.go
+++ b/opensearchapi/api_nodes-usage-params.go
@@ -27,6 +27,7 @@
 package opensearchapi
 
 import (
+	"strings"
 	"time"
 )
 
@@ -37,6 +38,7 @@ type NodesUsageParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r NodesUsageParams) get() map[string]string {
@@ -58,5 +60,9 @@ func (r NodesUsageParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_ping-params.go b/opensearchapi/api_ping-params.go
index fd0e44f..aac23a9 100644
--- a/opensearchapi/api_ping-params.go
+++ b/opensearchapi/api_ping-params.go
@@ -26,11 +26,14 @@
 
 package opensearchapi
 
+import "strings"
+
 // PingParams represents possible parameters for the PingReq
 type PingParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r PingParams) get() map[string]string {
@@ -48,5 +51,9 @@ func (r PingParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_point_in_time-create-params.go b/opensearchapi/api_point_in_time-create-params.go
index 2fc653f..58d85d1 100644
--- a/opensearchapi/api_point_in_time-create-params.go
+++ b/opensearchapi/api_point_in_time-create-params.go
@@ -7,6 +7,7 @@
 package opensearchapi
 
 import (
+	"strings"
 	"time"
 )
 
@@ -21,6 +22,7 @@ type PointInTimeCreateParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r PointInTimeCreateParams) get() map[string]string {
@@ -58,5 +60,9 @@ func (r PointInTimeCreateParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_point_in_time-delete-params.go b/opensearchapi/api_point_in_time-delete-params.go
index 2e7680a..d8a5892 100644
--- a/opensearchapi/api_point_in_time-delete-params.go
+++ b/opensearchapi/api_point_in_time-delete-params.go
@@ -6,11 +6,14 @@
 
 package opensearchapi
 
+import "strings"
+
 // PointInTimeDeleteParams represents possible parameters for the PointInTimeDeleteReq
 type PointInTimeDeleteParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r PointInTimeDeleteParams) get() map[string]string {
@@ -28,5 +31,9 @@ func (r PointInTimeDeleteParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_point_in_time-get-params.go b/opensearchapi/api_point_in_time-get-params.go
index 4b4bfa3..c7cba9e 100644
--- a/opensearchapi/api_point_in_time-get-params.go
+++ b/opensearchapi/api_point_in_time-get-params.go
@@ -6,11 +6,14 @@
 
 package opensearchapi
 
+import "strings"
+
 // PointInTimeGetParams represents possible parameters for the PointInTimeGetReq
 type PointInTimeGetParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r PointInTimeGetParams) get() map[string]string {
@@ -28,5 +31,9 @@ func (r PointInTimeGetParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_rank_eval-params.go b/opensearchapi/api_rank_eval-params.go
index 5741b01..06fb978 100644
--- a/opensearchapi/api_rank_eval-params.go
+++ b/opensearchapi/api_rank_eval-params.go
@@ -28,6 +28,7 @@ package opensearchapi
 
 import (
 	"strconv"
+	"strings"
 )
 
 // RankEvalParams represents possible parameters for the RankEvalReq
@@ -40,6 +41,7 @@ type RankEvalParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r RankEvalParams) get() map[string]string {
@@ -73,5 +75,9 @@ func (r RankEvalParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_reindex-params.go b/opensearchapi/api_reindex-params.go
index 177392d..9a1c619 100644
--- a/opensearchapi/api_reindex-params.go
+++ b/opensearchapi/api_reindex-params.go
@@ -29,6 +29,7 @@ package opensearchapi
 import (
 	"fmt"
 	"strconv"
+	"strings"
 	"time"
 )
 
@@ -46,6 +47,7 @@ type ReindexParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r ReindexParams) get() map[string]string {
@@ -95,5 +97,9 @@ func (r ReindexParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_reindex_rethrottle-params.go b/opensearchapi/api_reindex_rethrottle-params.go
index 9f85e17..a77dc2b 100644
--- a/opensearchapi/api_reindex_rethrottle-params.go
+++ b/opensearchapi/api_reindex_rethrottle-params.go
@@ -28,6 +28,7 @@ package opensearchapi
 
 import (
 	"strconv"
+	"strings"
 )
 
 // ReindexRethrottleParams represents possible parameters for the ReindexRethrottleReq
@@ -37,6 +38,7 @@ type ReindexRethrottleParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r ReindexRethrottleParams) get() map[string]string {
@@ -58,5 +60,9 @@ func (r ReindexRethrottleParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_render_search_template-params.go b/opensearchapi/api_render_search_template-params.go
index b979ba5..96ec116 100644
--- a/opensearchapi/api_render_search_template-params.go
+++ b/opensearchapi/api_render_search_template-params.go
@@ -26,11 +26,14 @@
 
 package opensearchapi
 
+import "strings"
+
 // RenderSearchTemplateParams represents possible parameters for the RenderSearchTemplateReq
 type RenderSearchTemplateParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r RenderSearchTemplateParams) get() map[string]string {
@@ -48,5 +51,9 @@ func (r RenderSearchTemplateParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_script-context-params.go b/opensearchapi/api_script-context-params.go
index acaf417..63f7956 100644
--- a/opensearchapi/api_script-context-params.go
+++ b/opensearchapi/api_script-context-params.go
@@ -26,11 +26,14 @@
 
 package opensearchapi
 
+import "strings"
+
 // ScriptContextParams represents possible parameters for the ScriptContextReq
 type ScriptContextParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r ScriptContextParams) get() map[string]string {
@@ -48,5 +51,9 @@ func (r ScriptContextParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_script-delete-params.go b/opensearchapi/api_script-delete-params.go
index b456780..5e1e15e 100644
--- a/opensearchapi/api_script-delete-params.go
+++ b/opensearchapi/api_script-delete-params.go
@@ -27,6 +27,7 @@
 package opensearchapi
 
 import (
+	"strings"
 	"time"
 )
 
@@ -39,6 +40,7 @@ type ScriptDeleteParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r ScriptDeleteParams) get() map[string]string {
@@ -68,5 +70,9 @@ func (r ScriptDeleteParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_script-get-params.go b/opensearchapi/api_script-get-params.go
index 1ec6ac2..996041f 100644
--- a/opensearchapi/api_script-get-params.go
+++ b/opensearchapi/api_script-get-params.go
@@ -27,6 +27,7 @@
 package opensearchapi
 
 import (
+	"strings"
 	"time"
 )
 
@@ -38,6 +39,7 @@ type ScriptGetParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r ScriptGetParams) get() map[string]string {
@@ -63,5 +65,9 @@ func (r ScriptGetParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_script-language-params.go b/opensearchapi/api_script-language-params.go
index 544a78f..6a5a729 100644
--- a/opensearchapi/api_script-language-params.go
+++ b/opensearchapi/api_script-language-params.go
@@ -26,11 +26,14 @@
 
 package opensearchapi
 
+import "strings"
+
 // ScriptLanguageParams represents possible parameters for the ScriptLanguageReq
 type ScriptLanguageParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r ScriptLanguageParams) get() map[string]string {
@@ -48,5 +51,9 @@ func (r ScriptLanguageParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_script-painless_execute-params.go b/opensearchapi/api_script-painless_execute-params.go
index 44c2c7b..f5bd647 100644
--- a/opensearchapi/api_script-painless_execute-params.go
+++ b/opensearchapi/api_script-painless_execute-params.go
@@ -26,11 +26,14 @@
 
 package opensearchapi
 
+import "strings"
+
 // ScriptPainlessExecuteParams represents possible parameters for the ScriptPainlessExecuteReq
 type ScriptPainlessExecuteParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r ScriptPainlessExecuteParams) get() map[string]string {
@@ -48,5 +51,9 @@ func (r ScriptPainlessExecuteParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_script-put-params.go b/opensearchapi/api_script-put-params.go
index abebbae..ad196f0 100644
--- a/opensearchapi/api_script-put-params.go
+++ b/opensearchapi/api_script-put-params.go
@@ -27,6 +27,7 @@
 package opensearchapi
 
 import (
+	"strings"
 	"time"
 )
 
@@ -39,6 +40,7 @@ type ScriptPutParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r ScriptPutParams) get() map[string]string {
@@ -68,5 +70,9 @@ func (r ScriptPutParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_scroll-delete-params.go b/opensearchapi/api_scroll-delete-params.go
index 573d39d..fc02c45 100644
--- a/opensearchapi/api_scroll-delete-params.go
+++ b/opensearchapi/api_scroll-delete-params.go
@@ -26,11 +26,14 @@
 
 package opensearchapi
 
+import "strings"
+
 // ScrollDeleteParams represents possible parameters for the ScrollDeleteReq
 type ScrollDeleteParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r ScrollDeleteParams) get() map[string]string {
@@ -48,5 +51,9 @@ func (r ScrollDeleteParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_scroll-get-params.go b/opensearchapi/api_scroll-get-params.go
index 003b449..345dfb4 100644
--- a/opensearchapi/api_scroll-get-params.go
+++ b/opensearchapi/api_scroll-get-params.go
@@ -28,6 +28,7 @@ package opensearchapi
 
 import (
 	"strconv"
+	"strings"
 	"time"
 )
 
@@ -40,6 +41,7 @@ type ScrollGetParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r ScrollGetParams) get() map[string]string {
@@ -69,5 +71,9 @@ func (r ScrollGetParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_search-params.go b/opensearchapi/api_search-params.go
index b1e2b63..a87434e 100644
--- a/opensearchapi/api_search-params.go
+++ b/opensearchapi/api_search-params.go
@@ -83,6 +83,7 @@ type SearchParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r SearchParams) get() map[string]string {
@@ -285,5 +286,9 @@ func (r SearchParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_search-template-params.go b/opensearchapi/api_search-template-params.go
index 6e28be0..f53cd23 100644
--- a/opensearchapi/api_search-template-params.go
+++ b/opensearchapi/api_search-template-params.go
@@ -51,6 +51,7 @@ type SearchTemplateParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r SearchTemplateParams) get() map[string]string {
@@ -120,5 +121,9 @@ func (r SearchTemplateParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_search_shards-params.go b/opensearchapi/api_search_shards-params.go
index c63ecad..3935c77 100644
--- a/opensearchapi/api_search_shards-params.go
+++ b/opensearchapi/api_search_shards-params.go
@@ -28,6 +28,7 @@ package opensearchapi
 
 import (
 	"strconv"
+	"strings"
 )
 
 // SearchShardsParams represents possible parameters for the SearchShardsReq
@@ -42,6 +43,7 @@ type SearchShardsParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r SearchShardsParams) get() map[string]string {
@@ -83,5 +85,9 @@ func (r SearchShardsParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_snapshot-clone-params.go b/opensearchapi/api_snapshot-clone-params.go
index 3e67f9b..adf8850 100644
--- a/opensearchapi/api_snapshot-clone-params.go
+++ b/opensearchapi/api_snapshot-clone-params.go
@@ -27,6 +27,7 @@
 package opensearchapi
 
 import (
+	"strings"
 	"time"
 )
 
@@ -38,6 +39,7 @@ type SnapshotCloneParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r SnapshotCloneParams) get() map[string]string {
@@ -62,5 +64,9 @@ func (r SnapshotCloneParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_snapshot-create-params.go b/opensearchapi/api_snapshot-create-params.go
index 9ae6386..d42f6de 100644
--- a/opensearchapi/api_snapshot-create-params.go
+++ b/opensearchapi/api_snapshot-create-params.go
@@ -28,6 +28,7 @@ package opensearchapi
 
 import (
 	"strconv"
+	"strings"
 	"time"
 )
 
@@ -40,6 +41,7 @@ type SnapshotCreateParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r SnapshotCreateParams) get() map[string]string {
@@ -68,5 +70,9 @@ func (r SnapshotCreateParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_snapshot-delete-params.go b/opensearchapi/api_snapshot-delete-params.go
index 93fdece..e27c64b 100644
--- a/opensearchapi/api_snapshot-delete-params.go
+++ b/opensearchapi/api_snapshot-delete-params.go
@@ -27,6 +27,7 @@
 package opensearchapi
 
 import (
+	"strings"
 	"time"
 )
 
@@ -38,6 +39,7 @@ type SnapshotDeleteParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r SnapshotDeleteParams) get() map[string]string {
@@ -63,5 +65,9 @@ func (r SnapshotDeleteParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_snapshot-get-params.go b/opensearchapi/api_snapshot-get-params.go
index 9a2205d..ed6c8a7 100644
--- a/opensearchapi/api_snapshot-get-params.go
+++ b/opensearchapi/api_snapshot-get-params.go
@@ -28,6 +28,7 @@ package opensearchapi
 
 import (
 	"strconv"
+	"strings"
 	"time"
 )
 
@@ -43,6 +44,7 @@ type SnapshotGetParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r SnapshotGetParams) get() map[string]string {
@@ -83,5 +85,9 @@ func (r SnapshotGetParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_snapshot-restore-params.go b/opensearchapi/api_snapshot-restore-params.go
index b03ae1a..8db2537 100644
--- a/opensearchapi/api_snapshot-restore-params.go
+++ b/opensearchapi/api_snapshot-restore-params.go
@@ -28,6 +28,7 @@ package opensearchapi
 
 import (
 	"strconv"
+	"strings"
 	"time"
 )
 
@@ -40,6 +41,7 @@ type SnapshotRestoreParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r SnapshotRestoreParams) get() map[string]string {
@@ -68,5 +70,9 @@ func (r SnapshotRestoreParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_snapshot-status-params.go b/opensearchapi/api_snapshot-status-params.go
index bf5457c..c3aecb2 100644
--- a/opensearchapi/api_snapshot-status-params.go
+++ b/opensearchapi/api_snapshot-status-params.go
@@ -28,6 +28,7 @@ package opensearchapi
 
 import (
 	"strconv"
+	"strings"
 	"time"
 )
 
@@ -40,6 +41,7 @@ type SnapshotStatusParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r SnapshotStatusParams) get() map[string]string {
@@ -68,5 +70,9 @@ func (r SnapshotStatusParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_snapshot_repository-cleanup-params.go b/opensearchapi/api_snapshot_repository-cleanup-params.go
index 9b3b8ea..e9c89aa 100644
--- a/opensearchapi/api_snapshot_repository-cleanup-params.go
+++ b/opensearchapi/api_snapshot_repository-cleanup-params.go
@@ -27,6 +27,7 @@
 package opensearchapi
 
 import (
+	"strings"
 	"time"
 )
 
@@ -39,6 +40,7 @@ type SnapshotRepositoryCleanupParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r SnapshotRepositoryCleanupParams) get() map[string]string {
@@ -68,5 +70,9 @@ func (r SnapshotRepositoryCleanupParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_snapshot_repository-create-params.go b/opensearchapi/api_snapshot_repository-create-params.go
index b9945f4..8621879 100644
--- a/opensearchapi/api_snapshot_repository-create-params.go
+++ b/opensearchapi/api_snapshot_repository-create-params.go
@@ -28,6 +28,7 @@ package opensearchapi
 
 import (
 	"strconv"
+	"strings"
 	"time"
 )
 
@@ -41,6 +42,7 @@ type SnapshotRepositoryCreateParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r SnapshotRepositoryCreateParams) get() map[string]string {
@@ -73,5 +75,9 @@ func (r SnapshotRepositoryCreateParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_snapshot_repository-delete-params.go b/opensearchapi/api_snapshot_repository-delete-params.go
index ed82194..d10ee46 100644
--- a/opensearchapi/api_snapshot_repository-delete-params.go
+++ b/opensearchapi/api_snapshot_repository-delete-params.go
@@ -27,6 +27,7 @@
 package opensearchapi
 
 import (
+	"strings"
 	"time"
 )
 
@@ -39,6 +40,7 @@ type SnapshotRepositoryDeleteParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r SnapshotRepositoryDeleteParams) get() map[string]string {
@@ -67,5 +69,9 @@ func (r SnapshotRepositoryDeleteParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_snapshot_repository-get-params.go b/opensearchapi/api_snapshot_repository-get-params.go
index a1865e3..388c512 100644
--- a/opensearchapi/api_snapshot_repository-get-params.go
+++ b/opensearchapi/api_snapshot_repository-get-params.go
@@ -28,6 +28,7 @@ package opensearchapi
 
 import (
 	"strconv"
+	"strings"
 	"time"
 )
 
@@ -40,6 +41,7 @@ type SnapshotRepositoryGetParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r SnapshotRepositoryGetParams) get() map[string]string {
@@ -69,5 +71,9 @@ func (r SnapshotRepositoryGetParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_snapshot_repository-verify-params.go b/opensearchapi/api_snapshot_repository-verify-params.go
index e6a9d19..768183c 100644
--- a/opensearchapi/api_snapshot_repository-verify-params.go
+++ b/opensearchapi/api_snapshot_repository-verify-params.go
@@ -27,6 +27,7 @@
 package opensearchapi
 
 import (
+	"strings"
 	"time"
 )
 
@@ -39,6 +40,7 @@ type SnapshotRepositoryVerifyParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r SnapshotRepositoryVerifyParams) get() map[string]string {
@@ -68,5 +70,9 @@ func (r SnapshotRepositoryVerifyParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_tasks-cancel-params.go b/opensearchapi/api_tasks-cancel-params.go
index c113649..faf1bf0 100644
--- a/opensearchapi/api_tasks-cancel-params.go
+++ b/opensearchapi/api_tasks-cancel-params.go
@@ -41,6 +41,7 @@ type TasksCancelParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r TasksCancelParams) get() map[string]string {
@@ -74,5 +75,9 @@ func (r TasksCancelParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_tasks-get-params.go b/opensearchapi/api_tasks-get-params.go
index d420928..72f75a5 100644
--- a/opensearchapi/api_tasks-get-params.go
+++ b/opensearchapi/api_tasks-get-params.go
@@ -28,6 +28,7 @@ package opensearchapi
 
 import (
 	"strconv"
+	"strings"
 	"time"
 )
 
@@ -39,6 +40,7 @@ type TasksGetParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r TasksGetParams) get() map[string]string {
@@ -64,5 +66,9 @@ func (r TasksGetParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_tasks-list-params.go b/opensearchapi/api_tasks-list-params.go
index f0dfd6c..f691b8d 100644
--- a/opensearchapi/api_tasks-list-params.go
+++ b/opensearchapi/api_tasks-list-params.go
@@ -45,6 +45,7 @@ type TasksListParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r TasksListParams) get() map[string]string {
@@ -90,5 +91,9 @@ func (r TasksListParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_template-create-params.go b/opensearchapi/api_template-create-params.go
index c9f0638..51a1c89 100644
--- a/opensearchapi/api_template-create-params.go
+++ b/opensearchapi/api_template-create-params.go
@@ -28,6 +28,7 @@ package opensearchapi
 
 import (
 	"strconv"
+	"strings"
 	"time"
 )
 
@@ -41,6 +42,7 @@ type TemplateCreateParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r TemplateCreateParams) get() map[string]string {
@@ -74,5 +76,9 @@ func (r TemplateCreateParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_template-delete-params.go b/opensearchapi/api_template-delete-params.go
index 72a899e..401b764 100644
--- a/opensearchapi/api_template-delete-params.go
+++ b/opensearchapi/api_template-delete-params.go
@@ -27,6 +27,7 @@
 package opensearchapi
 
 import (
+	"strings"
 	"time"
 )
 
@@ -39,6 +40,7 @@ type TemplateDeleteParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r TemplateDeleteParams) get() map[string]string {
@@ -68,5 +70,9 @@ func (r TemplateDeleteParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_template-exists-params.go b/opensearchapi/api_template-exists-params.go
index 00d566b..b6bc8d0 100644
--- a/opensearchapi/api_template-exists-params.go
+++ b/opensearchapi/api_template-exists-params.go
@@ -28,6 +28,7 @@ package opensearchapi
 
 import (
 	"strconv"
+	"strings"
 	"time"
 )
 
@@ -41,6 +42,7 @@ type TemplateExistsParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r TemplateExistsParams) get() map[string]string {
@@ -74,5 +76,9 @@ func (r TemplateExistsParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_template-get-params.go b/opensearchapi/api_template-get-params.go
index ec30a24..55aec6c 100644
--- a/opensearchapi/api_template-get-params.go
+++ b/opensearchapi/api_template-get-params.go
@@ -28,6 +28,7 @@ package opensearchapi
 
 import (
 	"strconv"
+	"strings"
 	"time"
 )
 
@@ -41,6 +42,7 @@ type TemplateGetParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r TemplateGetParams) get() map[string]string {
@@ -74,5 +76,9 @@ func (r TemplateGetParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_termvectors-params.go b/opensearchapi/api_termvectors-params.go
index 2a253b6..3127454 100644
--- a/opensearchapi/api_termvectors-params.go
+++ b/opensearchapi/api_termvectors-params.go
@@ -48,6 +48,7 @@ type TermvectorsParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r TermvectorsParams) get() map[string]string {
@@ -109,5 +110,9 @@ func (r TermvectorsParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_update-params.go b/opensearchapi/api_update-params.go
index 069e931..c2e0e7c 100644
--- a/opensearchapi/api_update-params.go
+++ b/opensearchapi/api_update-params.go
@@ -50,6 +50,7 @@ type UpdateParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r UpdateParams) get() map[string]string {
@@ -119,5 +120,9 @@ func (r UpdateParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_update_by_query-params.go b/opensearchapi/api_update_by_query-params.go
index 365bc4b..dca6055 100644
--- a/opensearchapi/api_update_by_query-params.go
+++ b/opensearchapi/api_update_by_query-params.go
@@ -74,6 +74,7 @@ type UpdateByQueryParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r UpdateByQueryParams) get() map[string]string {
@@ -235,5 +236,9 @@ func (r UpdateByQueryParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }
diff --git a/opensearchapi/api_update_by_query_rethrottle-params.go b/opensearchapi/api_update_by_query_rethrottle-params.go
index f7fe047..2a270cc 100644
--- a/opensearchapi/api_update_by_query_rethrottle-params.go
+++ b/opensearchapi/api_update_by_query_rethrottle-params.go
@@ -28,6 +28,7 @@ package opensearchapi
 
 import (
 	"strconv"
+	"strings"
 )
 
 // UpdateByQueryRethrottleParams represents possible parameters for the UpdateByQueryRethrottleReq
@@ -37,6 +38,7 @@ type UpdateByQueryRethrottleParams struct {
 	Pretty     bool
 	Human      bool
 	ErrorTrace bool
+	FilterPath []string
 }
 
 func (r UpdateByQueryRethrottleParams) get() map[string]string {
@@ -58,5 +60,9 @@ func (r UpdateByQueryRethrottleParams) get() map[string]string {
 		params["error_trace"] = "true"
 	}
 
+	if len(r.FilterPath) > 0 {
+		params["filter_path"] = strings.Join(r.FilterPath, ",")
+	}
+
 	return params
 }


Test patch:
diff --git a/opensearchapi/api_search-params_test.go b/opensearchapi/api_search-params_test.go
index 33b616d..e5452fb 100644
--- a/opensearchapi/api_search-params_test.go
+++ b/opensearchapi/api_search-params_test.go
@@ -68,6 +68,7 @@ func TestSearchParams_get(t *testing.T) {
 		Pretty                     bool
 		Human                      bool
 		ErrorTrace                 bool
+		FilterPath                 []string
 	}
 	tests := []struct {
 		name   string
@@ -94,6 +95,7 @@ func TestSearchParams_get(t *testing.T) {
 				ErrorTrace:                 false,
 				ExpandWildcards:            "open,hidden",
 				Explain:                    ToPointer(true),
+				FilterPath:                 []string{"field1", "field2"},
 				From:                       ToPointer(30),
 				Human:                      false,
 				IgnoreThrottled:            ToPointer(true),
@@ -145,6 +147,7 @@ func TestSearchParams_get(t *testing.T) {
 				"docvalue_fields":               "title,date",
 				"expand_wildcards":              "open,hidden",
 				"explain":                       "true",
+				"filter_path":                   "field1,field2",
 				"from":                          "30",
 				"ignore_throttled":              "true",
 				"ignore_unavailable":            "true",
@@ -192,6 +195,7 @@ func TestSearchParams_get(t *testing.T) {
 				DocvalueFields:             tt.fields.DocvalueFields,
 				ExpandWildcards:            tt.fields.ExpandWildcards,
 				Explain:                    tt.fields.Explain,
+				FilterPath:                 tt.fields.FilterPath,
 				From:                       tt.fields.From,
 				IgnoreThrottled:            tt.fields.IgnoreThrottled,
 				IgnoreUnavailable:          tt.fields.IgnoreUnavailable,