There is "namespace" properties of the data_view object when create Data Views.
(doc: Create data view API | Kibana Guide [master] | Elastic)
curl -X POST "kibanahost:port/api/data_views/data_view" -H 'kbn-xsrf: true' -H 'Content-Type: application/json' -d'
{
"data_view": {
"title": "kibana_sample_data_ecommerce",
"name": "Kibana Sample Data eCommerce",
"namespaces": ["test", "default"]
}
}
'
But returned message is
"message":"[request body.data_view.namespaces]: definition for this key is missing"}
Is the function not implemented? Or is there a problem with my query?