POST
/_ml/trained_models/{model_id}/_infer
Console
POST _ml/trained_models/lang_ident_model_1/_infer
{
"docs":[{"text": "The fool doth think he is wise, but the wise man knows himself to be a fool."}]
}
curl \
--request POST 'http://api.example.com/_ml/trained_models/{model_id}/_infer' \
--header "Content-Type: application/json" \
--data '"{\n \"docs\":[{\"text\": \"The fool doth think he is wise, but the wise man knows himself to be a fool.\"}]\n}"'
Request example
An example body for a `POST _ml/trained_models/lang_ident_model_1/_infer` request.
{
"docs":[{"text": "The fool doth think he is wise, but the wise man knows himself to be a fool."}]
}