{
  "ml.post_data": {
    "documentation": {
      "url": "https://www.elastic.co/guide/en/elasticsearch/reference/8.19/ml-post-data.html",
      "description": "Send data to an anomaly detection job for analysis"
    },
    "stability": "stable",
    "visibility": "public",
    "deprecated": {
      "version": "7.11.0",
      "description": "Posting data directly to anomaly detection jobs is deprecated, in a future major version a datafeed will be required."
    },
    "headers": {
      "accept": [
        "application/json"
      ],
      "content_type": [
        "application/x-ndjson",
        "application/json"
      ]
    },
    "url": {
      "paths": [
        {
          "path": "/_ml/anomaly_detectors/{job_id}/_data",
          "methods": [
            "POST"
          ],
          "parts": {
            "job_id": {
              "type": "string",
              "description": "The name of the job receiving the data"
            }
          }
        }
      ]
    },
    "params": {
      "reset_start": {
        "type": "date",
        "description": "Optional parameter to specify the start of the bucket resetting range"
      },
      "reset_end": {
        "type": "date",
        "description": "Optional parameter to specify the end of the bucket resetting range"
      }
    },
    "body": {
      "description": "The data to process",
      "required": true,
      "serialize": "bulk"
    }
  }
}
