v53

latestOpenAPI 3.0.3raw.githubusercontent.com2026-08-076771,7565.2 MB
data views

Create a data view

Spaces method and path for this operation:

<div><span class="operation-verb post">post</span>&nbsp;<span class="operation-path">/s/{space_id}/api/data_views/data_view</span></div>

Refer to Spaces for more information.

Create a data view. Data views identify the Elasticsearch data you want to explore and visualize. They can point to one or more data streams, indices, or index aliases, and use optional runtime fields to compute values at query time. Note that data views are not required for ES|QL-based visualizations. To learn more, refer to the data views documentation.

post/api/data_views/data_view

Headers

kbn-xsrfstring required

Cross-site request forgery protection

Request body

overrideboolean

Override an existing data view if a data view with the provided title already exists.

Response

Indicates a successful call.

Example response

{
  "data_view": {
    "id": "ff959d40-b880-11e8-a6d9-e546fe2bba5f",
    "version": "WzQ2LDJd"
  }
}