| 123456789101112131415161718192021222324252627282930313233343536373839 | --:api: stop-datafeed:request: StopDatafeedRequest:response: StopDatafeedResponse--[role="xpack"][id="{upid}-{api}"]=== Stop datafeeds APIStops a {ml} datafeed in the cluster.It accepts a +{request}+ object and respondswith a +{response}+ object.[id="{upid}-{api}-request"]==== Stop datafeeds requestA +{request}+ object is created referencing any number of non-null `datafeedId` entries.Wildcards and `_all` are also accepted.All other fields are optional for the request.["source","java",subs="attributes,callouts,macros"]--------------------------------------------------include-tagged::{doc-tests-file}[{api}-request]--------------------------------------------------<1> Constructing a new request referencing existing `datafeedId` entries.==== Optional argumentsThe following arguments are optional.["source","java",subs="attributes,callouts,macros"]--------------------------------------------------include-tagged::{doc-tests-file}[{api}-request-options]--------------------------------------------------<1> Whether to ignore if a wildcard expression matches no datafeeds. (This includes `_all` string)<2> If true, the datafeed is stopped forcefully.<3> Controls the amount of time to wait until a datafeed stops. The default value is 20 seconds.include::../execution.asciidoc[]
 |