Refreshing index pattern with API

Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):

Describe the issue:
In our we have 1000’s of indices and I have applied a change for the fields at the source(FluentD). The logs are flowing and able to see the new fields. But the issue is, unable to filter logs using those new fields as the new fields have no cached mapping. For couple of them, I have refreshed the Index patterns. But as there are alot of them, is there any API call that can help me to refresh all the index patterns together.


Relevant Logs or Screenshots: