// This file is autogenerated, DO NOT EDIT
// ml/anomaly-detection/apis/update-datafeed.asciidoc:166

[source, python]
----
resp = client.ml.update_datafeed(
    datafeed_id="datafeed-test-job",
    query={
        "term": {
            "geo.src": "US"
        }
    },
)
print(resp)
----
