// This file is autogenerated, DO NOT EDIT
// indices/put-index-template.asciidoc:277

[source, python]
----
resp = client.indices.put_index_template(
    name="template_1",
    index_patterns=[
        "foo",
        "bar"
    ],
    priority=0,
    template={
        "settings": {
            "number_of_shards": 1
        }
    },
    version=123,
)
print(resp)
----
