// This file is autogenerated, DO NOT EDIT
// watcher/how-watcher-works.asciidoc:159

[source, python]
----
resp = client.perform_request(
    "PUT",
    "/_watcher/settings",
    headers={"Content-Type": "application/json"},
    body={
        "index.routing.allocation.include.role": "watcher"
    },
)
print(resp)
----
