Import configuration depends on tenant using API

I’m creating the environment using API, and I’m using multi tenants.
By default when I try to import some element (index, index pattern o ndjson file) insert objects in Private tenant (this tenant is in elasticsearch.yml).
But… could I choose the tenant in API request?

I believe you need to use the “securitytenant” header to identify the target tenant. For example, my calls to the API using curl include -H "securitytenant: global" to get them into the right tenant. I didn’t find that mentioned in the doc, but I believe it was mentioned in a post here at some point.

Thank for your reply
I didn’t find it (documentation and forum), but I have just tried and it works!!! So … thank you so much!!!