Update data stream settings
- PUT /_data_stream/{name}/_settings
Available in 8.19. Not available in earlier versions.
This API can be used to override settings on specific data streams. These overrides will take precedence over what is specified in the template that the data stream matches. To prevent your data stream from getting into an invalid state, only certain settings are allowed. If possible, the setting change is applied to all backing indices. Otherwise, it will be applied when the data stream is next rolled over.
Required authorization
- Index privileges manage
Query parameters
Request body
Type: object
Response
-
data_streamsobjectrequired -
applied_to_data_streambooleanrequired -
If the settings were successfully applied to the data stream (or would have been, if running in
dry_runmode), it istrue. If an error occurred, it isfalse. -
settingsobjectrequired -
The settings that are specfic to this data stream that will override any settings from the matching index template.
-
effective_settingsobjectrequired -
The settings that are effective on this data stream, taking into account the settings from the matching index template and the settings specific to this data stream.
-
index_settings_resultsobjectrequired -
Information about whether and where each setting was applied.