- Kibana Guide: other versions:
- What is Kibana?
- What’s new in 7.13
- Kibana concepts
- Quick start
- Set up
- Install Kibana
- Configure Kibana
- Alerting and action settings
- APM settings
- Banners settings
- Development tools settings
- Graph settings
- Fleet settings
- i18n settings
- Logging settings
- Logs settings
- Metrics settings
- Machine learning settings
- Monitoring settings
- Reporting settings
- Secure settings
- Search sessions settings
- Security settings
- Spaces settings
- Task Manager settings
- Telemetry settings
- URL drilldown settings
- Start and stop Kibana
- Access Kibana
- Securing access to Kibana
- Add data
- Upgrade Kibana
- Embed Kibana content in a web page
- Configure monitoring
- Configure security
- Production considerations
- Discover
- Dashboard
- Canvas
- Maps
- Machine learning
- Graph
- Alerting
- Observability
- APM
- Security
- Dev Tools
- Stack Monitoring
- Stack Management
- Fleet
- Reporting
- REST API
- Kibana plugins
- Accessibility
- Release notes
- Developer guide
Update index pattern API
editUpdate index pattern API
edit[preview] This functionality is in technical preview and may be changed or removed in a future release. Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features. Update part of an index pattern. Only the specified fields are updated in the index pattern. Unspecified fields stay as they are persisted.
Request
editPOST <kibana host>:<port>/api/index_patterns/index_pattern/<id>
POST <kibana host>:<port>/s/<space_id>/api/index_patterns/index_pattern/<id>
Path parameters
edit-
space_id
-
(Optional, string) An identifier for the space. If
space_id
is not provided in the URL, the default space is used. -
id
- (Required, string) The ID of the index pattern you want to update.
Request body
edit-
refresh_fields
-
(Optional, boolean) Reloads the index pattern fields after
the index pattern is updated. The default is
false
. -
index_pattern
-
(Required, object) The index patterns fields you want to update.
You can partially update the following fields:
-
title
-
timeFieldName
-
fields
-
sourceFilters
-
fieldFormatMap
-
type
-
typeMeta
-
Response code
edit-
200
- Indicates a successful call.
Examples
editUpdate a title of the <my-pattern>
index pattern:
$ curl -X POST api/index_patterns/index-pattern/my-pattern { "index_pattern": { "title": "some-other-pattern-*" } }
Customize the update behavior:
$ curl -X POST api/index_patterns/index-pattern/my-pattern { "refresh_fields": true, "index_pattern": { "fields": {} } }
All update fields are optional, but you can specify the following fields:
$ curl -X POST api/index_patterns/index-pattern/my-pattern { "index_pattern": { "title": "...", "timeFieldName": "...", "sourceFilters": [], "fieldFormats": {}, "type": "...", "typeMeta": {}, "fields": {} } }
The API returns the updated index pattern object:
{ "index_pattern": { } }