Updates certain properties of a datafeed.
The following properties can be updated after the datafeed is created:
aggregations
chunking_config
frequency
150s.
indices
["it_ops_metrics", "server*"].
job_id
query
{"match_all": {"boost": 1}}.
query_delay
60s.
script_fields
scroll_size
size parameter that is used in Elasticsearch searches.
  The default value is 1000.
For more information about these properties, see Datafeed resources.
If Elasticsearch security features are enabled, you must have manage_ml, or manage
cluster privileges to use this API. For more information, see
Security Privileges.
When Elasticsearch security features are enabled, your datafeed remembers which roles the user who updated it had at the time of update and runs the query using those same roles.
The following example updates the query for the datafeed-total-requests
datafeed so that only log entries of error level are analyzed:
POST _ml/datafeeds/datafeed-total-requests/_update
{
  "query": {
    "term": {
      "level": "error"
    }
  }
}When the datafeed is updated, you receive the full datafeed configuration with with the updated values:
{
  "datafeed_id": "datafeed-total-requests",
  "job_id": "total-requests",
  "query_delay": "83474ms",
  "indices": ["server-metrics"],
  "query": {
    "term": {
      "level": {
        "value": "error",
        "boost": 1.0
      }
    }
  },
  "scroll_size": 1000,
  "chunking_config": {
    "mode": "auto"
  }
}