Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions manage-data/data-store/data-streams/modify-data-stream.md
Original file line number Diff line number Diff line change
Expand Up @@ -499,3 +499,24 @@ POST _aliases
}
```

## Modify the backing indices of a data stream [data-streams-modify-backing-indices]

Use the [modify API](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-modify-data-stream) to modify the backing indices of a data stream. Multiple actions can be specified in a single modify request, and they will be executed atomically.

```console
POST /_data_stream/_modify
{
"actions": [
{
"add_backing_index": {
"data_stream": "my-data-stream",
"index": "new-index"
},
"remove_backing_index": {
"data_stream": "my-data-stream",
"index": "old-index"
}
}
]
}
```
Loading