Kibana dataview namespace

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?

1 Like

Unfortunately the namespaces key is only available for the response object, but not on the request.

There is already a github issue discussing this, please feel free to chime in you have further feedback

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.