Create a runtime field Beta
Path parameters
-
An identifier for the data view.
Body Required
-
The name for a runtime field.
-
The runtime field definition object.
Additional properties are allowed.
POST
/api/data_views/data_view/{viewId}/runtime_field
curl \
-X POST https://<KIBANA_URL>/api/data_views/data_view/ff959d40-b880-11e8-a6d9-e546fe2bba5f/runtime_field \
-H "Content-Type: application/json; Elastic-Api-Version=2023-10-31" \
-H "kbn-xsrf: string"
Request example
{
"name": "runtimeFoo",
"runtimeField": {
"type": "long",
"script": {
"source": "emit(doc[\"foo\"].value)"
}
}
}
Response examples (200)
{}