GET
/_ml/data_frame/analytics/_preview
curl \
--request GET 'http://api.example.com/_ml/data_frame/analytics/_preview' \
--header "Content-Type: application/json" \
--data '"{\n \"config\": {\n \"source\": {\n \"index\": \"houses_sold_last_10_yrs\"\n },\n \"analysis\": {\n \"regression\": {\n \"dependent_variable\": \"price\"\n }\n }\n }\n}"'
Request example
An example body for a `POST _ml/data_frame/analytics/_preview` request.
{
"config": {
"source": {
"index": "houses_sold_last_10_yrs"
},
"analysis": {
"regression": {
"dependent_variable": "price"
}
}
}
}