//lcawley Verified example output 2017-04-11
[[ml-stop-datafeed]]
==== Stop Data Feeds

A data feed that is stopped ceases to retrieve data from {es}.
A data feed can be started and stopped multiple times throughout its lifecycle.

===== Request

`POST _xpack/ml/datafeeds/<feed_id>/_stop`

//===== Description

===== Path Parameters

`feed_id` (required)::
  (string) Identifier for the data feed

===== Request Body

`force`::
  (boolean) If true, the data feed is stopped forcefully.

`timeout`::
  (time) Controls the amount of time to wait until a data feed stops.
  The default value is 20 seconds.


===== Authorization

You must have `manage_ml`, or `manage` cluster privileges to use this API.
For more information, see <<privileges-list-cluster>>.

===== Examples

The following example stops the `datafeed-it-ops-kpi` data feed:

[source,js]
--------------------------------------------------
POST _xpack/ml/datafeeds/datafeed-it-ops-kpi/_stop
{
  "timeout": "30s"
}
--------------------------------------------------
// CONSOLE
// TEST[skip:todo]

When the data feed stops, you receive the following results:
[source,js]
----
{
  "stopped": true
}
----
