// This file is autogenerated, DO NOT EDIT
// tab-widgets/troubleshooting/data/enable-index-allocation.asciidoc:130

[source, python]
----
resp = client.indices.put_settings(
    index="my-index-000001",
    settings={
        "index": {
            "routing.allocation.enable": "all"
        }
    },
)
print(resp)
----
