Menu
Update data stream mappings
Update data stream mappings
PUT
/_data_stream/{name}/_mappingsUse it in a workflow
- Add a step and choose the Elasticsearch connector.
- Pick the Update data stream mappings action (under data stream).
- Fill in the fields below, then reference the result from later steps as
{{updateDataStreamMappings.response.data}}.
Request
Path parameters
Query parameters
Request body
Enter the body as JSON in the step's Body field.
{
"all_field": {},
"date_detection": {},
"dynamic": {},
"dynamic_date_formats": {},
"dynamic_templates": {},
"_field_names": {},
"index_field": {},
"_meta": {},
"numeric_detection": {},
"properties": {},
"_routing": {},
"_size": {}
}
Response
Returns 200 with an object. Read it in later steps with {{updateDataStreamMappings.response.data.<field>}}.
{
"data_streams": [
{
"name": null,
"applied_to_data_stream": false,
"error": "string",
"mappings": null,
"effective_mappings": null
}
]
}
Need more? See the Elasticsearch guide for connection setup and behaviour shared by every action.
Was this page helpful?