Update index pattern APIedit

Deprecated in 8.0.0.

Use Update data view instead.

[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.


POST <kibana host>:<port>/api/index_patterns/index_pattern/<id>

POST <kibana host>:<port>/s/<space_id>/api/index_patterns/index_pattern/<id>

Path parametersedit

(Optional, string) An identifier for the space. If space_id is not provided in the URL, the default space is used.
(Required, string) The ID of the index pattern you want to update.

Request bodyedit

(Optional, boolean) Reloads the index pattern fields after the index pattern is updated. The default is false.

(Required, object) The index patterns fields you want to update.

You can partially update the following fields:

  • title
  • name
  • timeFieldName
  • fields
  • sourceFilters
  • fieldFormatMap
  • type
  • typeMeta

Response codeedit

Indicates a successful call.


Update 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": "...",
    "name": "...",
    "timeFieldName": "...",
    "sourceFilters": [],
    "fieldFormats": {},
    "type": "...",
    "typeMeta": {},
    "fields": {},
    "runtimeFieldMap": {}

The API returns the updated index pattern object:

    "index_pattern": {