[source, ruby]
----
response = client.indices.put_index_template(
  name: 'template_1',
  body: {
    index_patterns: [
      'te*'
    ],
    priority: 1,
    template: {
      settings: {
        number_of_shards: 2
      }
    }
  }
)
puts response
----
