anchor.diff:  Data streams require a matching index template with a `data_stream` object.
   See <<create-a-data-stream-template>>.
   
  -include::{docdir}/rest-api/common-parms.asciidoc[tag=mappings]
  -
  -include::{docdir}/rest-api/common-parms.asciidoc[tag=settings]
  -
   `template`::
   (Optional, object)
  -This is the template to be applied, may optionally include a `mappings`,
  -`settings`, or `aliases` configuration.
  +Template to be applied. It may optionally include an `aliases`, `mappings`, or
  +`settings` configuration.
  ++
  +.Properties of `template`
  +[%collapsible%open]
  +====
  +include::{docdir}/rest-api/common-parms.asciidoc[tag=aliases]
  ++
  +NOTE: You cannot add data streams to an index alias.
  +
  +include::{docdir}/rest-api/common-parms.asciidoc[tag=mappings]
  +
  +include::{docdir}/rest-api/common-parms.asciidoc[tag=settings]
  +====
   
   `composed_of`::
   (Optional, array of strings)
  
positive.code: (Required, array of strings)
  Array of wildcard (`*`) expressions
  used to match the names of data streams and indices during creation.
  
  include::{docdir}/rest-api/common-parms.asciidoc[tag=aliases]
  +
  NOTE: You cannot add data streams to an index alias.
  
  [xpack]#`data_stream`#::
  (Optional, object)
  
negative.code: 
  include::{docdir}/rest-api/common-parms.asciidoc[tag=master-timeout]
  
  [role="child_attributes"]
  [[put-index-template-api-request-body]]
  ==== {api-request-body-title}
  
  