v53

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

Create a runtime field

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/{viewId}/runtime_field</span></div>

Refer to Spaces for more information.

Create a runtime field for a data view. Runtime fields are computed at query time using a Painless script and do not require reindexing. If no script is provided, the runtime field returns the corresponding value from the document _source.

post/api/data_views/data_view/{viewId}/runtime_field

Path parameters

viewIdstring required
Example:ff959d40-b880-11e8-a6d9-e546fe2bba5f

An identifier for the data view.

Headers

kbn-xsrfstring required

Cross-site request forgery protection

Request body

namestring required

The name for a runtime field.

runtimeFieldobject required

The runtime field definition object.

Response

Indicates a successful call.

object required