How to create index-pattern for a specific tenant in Elasticsearch Kibana using API?

Hi I am following this API - Open Distro for Elasticsearch Documentation to create tenant.

We can also create an index using index API Create index API | Elasticsearch Guide [7.15] | Elastic

Is there any way to crate index-pattern with an index for a specific tenant using any API? (We can do the same manually from UI)

[Moved to the security category]