Skip to content

Commit e43e5ec

Browse files
authored
Add doc for the modify data stream API (#1271)
Add documentation for the `/_data_stream/_modify` API
1 parent a275f9d commit e43e5ec

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

manage-data/data-store/data-streams/modify-data-stream.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -499,3 +499,24 @@ POST _aliases
499499
}
500500
```
501501

502+
## Modify the backing indices of a data stream [data-streams-modify-backing-indices]
503+
504+
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.
505+
506+
```console
507+
POST /_data_stream/_modify
508+
{
509+
"actions": [
510+
{
511+
"add_backing_index": {
512+
"data_stream": "my-data-stream",
513+
"index": "new-index"
514+
},
515+
"remove_backing_index": {
516+
"data_stream": "my-data-stream",
517+
"index": "old-index"
518+
}
519+
}
520+
]
521+
}
522+
```

0 commit comments

Comments
 (0)