{
  "ml.forecast": {
    "documentation": {
      "url": "https://www.elastic.co/guide/en/elasticsearch/reference/8.19/ml-forecast.html",
      "description": "Predict future behavior of a time series"
    },
    "stability": "stable",
    "visibility": "public",
    "headers": {
      "accept": [
        "application/json"
      ],
      "content_type": [
        "application/json"
      ]
    },
    "url": {
      "paths": [
        {
          "path": "/_ml/anomaly_detectors/{job_id}/_forecast",
          "methods": [
            "POST"
          ],
          "parts": {
            "job_id": {
              "type": "string",
              "description": "The ID of the job to forecast for"
            }
          }
        }
      ]
    },
    "params": {
      "duration": {
        "type": "time",
        "default": "1d",
        "description": "The duration of the forecast"
      },
      "expires_in": {
        "type": "time",
        "default": "14d",
        "description": "The time interval after which the forecast expires. Expired forecasts will be deleted at the first opportunity."
      },
      "max_model_memory": {
        "type": "string",
        "default": "20mb",
        "description": "The max memory able to be used by the forecast. Default is 20mb."
      }
    },
    "body": {
      "description": "Query parameters can be specified in the body",
      "required": false
    }
  }
}
