younifyd
Menu

Update data stream mappings

Update data stream mappings

PUT/_data_stream/{name}/_mappings

Use it in a workflow

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

Request

Path parameters

nameoneOfrequired

A comma-separated list of data streams or data stream patterns.

Query parameters

dry_runboolean

If `true`, the request does not actually change the mappings on any data streams. Instead, it simulates changing the settings and reports back to the user what would have happened had these settings actually been applied.

master_timeoutoneOf

The period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.

timeoutoneOf

The period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.

Request body

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

all_fieldobject

(schema truncated: exceeded maximum nesting depth)

date_detectionobject

(schema truncated: exceeded maximum nesting depth)

dynamicobject

(schema truncated: exceeded maximum nesting depth)

dynamic_date_formatsobject

(schema truncated: exceeded maximum nesting depth)

dynamic_templatesobject

(schema truncated: exceeded maximum nesting depth)

_field_namesobject

(schema truncated: exceeded maximum nesting depth)

index_fieldobject

(schema truncated: exceeded maximum nesting depth)

_metaobject

(schema truncated: exceeded maximum nesting depth)

numeric_detectionobject

(schema truncated: exceeded maximum nesting depth)

propertiesobject

(schema truncated: exceeded maximum nesting depth)

_routingobject

(schema truncated: exceeded maximum nesting depth)

_sizeobject

(schema truncated: exceeded maximum nesting depth)

_sourceobject

(schema truncated: exceeded maximum nesting depth)

runtimeobject

(schema truncated: exceeded maximum nesting depth)

enabledobject

(schema truncated: exceeded maximum nesting depth)

subobjectsobject

(schema truncated: exceeded maximum nesting depth)

_data_stream_timestampobject

(schema truncated: exceeded maximum nesting depth)

json
{
  "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_streamsarray<object>
nameanyrequired

The data stream name.

applied_to_data_streambooleanrequired

If the mappings were successfully applied to the data stream (or would have been, if running in `dry_run` mode), it is `true`. If an error occurred, it is `false`.

errorstring

A message explaining why the mappings could not be applied to the data stream.

mappingsany

The mappings that are specfic to this data stream that will override any mappings from the matching index template.

effective_mappingsany

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.

json
{
  "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.