Menu
Update data stream settings
Update data stream settings
PUT
/_data_stream/{name}/_settingsUse it in a workflow
- Add a step and choose the Elasticsearch connector.
- Pick the Update data stream settings action (under data stream).
- Fill in the fields below, then reference the result from later steps as
{{updateDataStreamSettings.response.data}}.
Request
Path parameters
Query parameters
Request body
Enter the body as JSON in the step's Body field.
{
"index": null,
"mode": "string",
"routing_path": null,
"soft_deletes": null,
"sort": null,
"number_of_shards": "1",
"number_of_replicas": "0",
"number_of_routing_shards": 0,
"check_on_startup": "false",
"codec": "LZ4",
"routing_partition_size": "1",
"load_fixed_bitset_filters_eagerly": true
}
Response
Returns 200 with an object. Read it in later steps with {{updateDataStreamSettings.response.data.<field>}}.
{
"data_streams": [
{
"name": null,
"applied_to_data_stream": false,
"settings": null,
"effective_settings": null,
"index_settings_results": null,
"error": "string"
}
]
}
Need more? See the Elasticsearch guide for connection setup and behaviour shared by every action.
Was this page helpful?