Update data stream mappings
- PUT /_data_stream/{name}/_mappings
This API can be used to override mappings on specific data streams. These overrides will take precedence over what is specified in the template that the data stream matches. The mapping change is only applied to new write indices that are created during rollover after this API is called. No indices are changed by this API.
Required authorization
- Index privileges manage
Query parameters
Response
-
data_streamsobject[]required -
applied_to_data_streambooleanrequired -
If the mappings were successfully applied to the data stream (or would have been, if running in
dry_runmode), it istrue. If an error occurred, it isfalse. -
mappingsobject -
The mappings that are specfic to this data stream that will override any mappings from the matching index template.
-
all_fieldobject -
Same fields as
all_field -
effective_mappingsobject -
The mappings that are effective on this data stream, taking into account the mappings from the matching index template and the mappings specific to this data stream.
-
Same fields as
mappingsindata_streams