younifyd
Menu

Update data streams

Update data streams

POST/_data_stream/_modify

Use it in a workflow

  1. Add a step and choose the Elasticsearch connector.
  2. Pick the Update data streams action (under data stream).
  3. Fill in the fields below, then reference the result from later steps as {{updateDataStreams.response.data}}.

Request

Request body

Enter the body as JSON in the step's Body field.

actionsarray<object>required

Actions to perform.

add_backing_indexany

Adds an existing index as a backing index for a data stream. The index is hidden as part of this operation. WARNING: Adding indices with the `add_backing_index` action can potentially result in improper data stream behavior. This should be considered an expert level API.

remove_backing_indexany

Removes a backing index from a data stream. The index is unhidden as part of this operation. A data stream’s write index cannot be removed.

json
{
  "actions": [
    {
      "add_backing_index": null,
      "remove_backing_index": null
    }
  ]
}

Response

Returns 200 with an object. Read it in later steps with {{updateDataStreams.response.data.<field>}}.

acknowledgedboolean

For a successful response, this value is always true. On failure, an exception is returned instead.

json
{
  "acknowledged": false
}

Need more? See the Elasticsearch guide for connection setup and behaviour shared by every action.

Update data streams — Elasticsearch — Documentation