How to specify a tenant during index-pattern creation


with the rest saved_object it is trivial to define an index pattern. However creation of a tenant using

PUT _opendistro/_security/api/tenants/<tenant>

doesn’t result in creation of ./kibana_{hash}_{tenant} index. Still the tenant is visible with

GET _opendistro/_security/api/tenants/

So far so good. But the next question is how to create an index-pattern for a particular tenant? and not for the global using the REST API ?

api/saved_objects/index-pattern/${id} \
-H 'kbn-xsrf: true' -H "securitytenant: {tenant}" -H "Content-Type: application/json" -XPOST -d \
	 "attributes": {
	 	"title": "my-index-pattern",
	 	"timeFieldName": "@timestamp"

Even if the security tenant header is present it still creates the index pattern in the global tenant