Update Data View
update_data_viewEdit a Kibana data view by ID to change its name, index pattern, or time field. Only specified fields update, with the time field validated against the new pattern.
Instructions
Edit an existing data view in place, by id (from list_data_views):
its display name, its index_pattern (e.g. 'logs-*') and/or its
default time_field. Only the fields you pass change. The time field
must be a date field of the view: when you change the index pattern,
the time field (the one you pass, or the current one) is checked
against the NEW pattern's fields, and on a mismatch nothing changes.
A pattern that matches no index yet is accepted, but its time field
cannot be checked (field_count is then 0). A name that defaulted to
the old pattern stays as it is; pass name to change it too. The
time field cannot be removed. Dashboard panels built by this server
keep the pattern and time field they were built with; rebuild one
with update_panel to use the new ones. Returns id, name,
index_pattern, time_field and field_count.
space targets a Kibana space by id (default: the default space).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| space | No | ||
| view_id | Yes | ||
| time_field | No | ||
| index_pattern | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||