---
type: api
title: Send data to an anomaly detection job for analysis
description: IMPORTANT: For each job, data can be accepted from only a single connection at a time.
url: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/elasticsearch/operation/operation-ml-post-data
resource: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/elasticsearch/operation/operation-ml-post-data
products:
  - Elasticsearch
---

# Send data to an anomaly detection job for analysis

deprecated

Availability: 5.4+

## Paths

- `POST` `/_ml/anomaly_detectors/{job_id}/_data`

- [Api key auth](/elastic/docs-builder/docs/4371/api/doc/elasticsearch/authentication#apikeyauth)
- [Basic auth](/elastic/docs-builder/docs/4371/api/doc/elasticsearch/authentication#basicauth)
- [Bearer auth](/elastic/docs-builder/docs/4371/api/doc/elasticsearch/authentication#bearerauth)

#### Path Parameters

- `job_id` (string Id)
  Identifier for the anomaly detection job. The job must have a state of open to receive and process the data.

## Description

IMPORTANT: For each job, data can be accepted from only a single connection at a time.
It is not currently possible to post data to multiple jobs using wildcards or a comma-separated list.

## Required authorization

* Cluster privileges: `manage_ml`

## Query String Parameters

- `reset_end` (union DateTime)
  Specifies the end of the bucket resetting range.
  One of: `string` or `EpochTimeUnitMillis`
- `reset_start` (union DateTime)
  Specifies the start of the bucket resetting range.
  One of: `string` or `EpochTimeUnitMillis`

## Request Body

`application/json`

Type: `[] object`


## Response

`application/json`

- `job_id` (string Id)
- `processed_record_count` (number)
- `processed_field_count` (number)
- `input_bytes` (number)
- `input_field_count` (number)
- `invalid_date_count` (number)
- `missing_field_count` (number)
- `out_of_order_timestamp_count` (number)
- `empty_bucket_count` (number)
- `sparse_bucket_count` (number)
- `bucket_count` (number)
- `earliest_record_timestamp` (EpochTimeUnitMillis)
- `latest_record_timestamp` (EpochTimeUnitMillis)
- `last_data_time` (EpochTimeUnitMillis)
- `latest_empty_bucket_timestamp` (EpochTimeUnitMillis)
- `latest_sparse_bucket_timestamp` (EpochTimeUnitMillis)
- `input_record_count` (number)
- `log_time` (EpochTimeUnitMillis)
## Code Examples

#### Console

```console
POST /_ml/anomaly_detectors/{job_id}/_data
```

#### curl

```curl
curl -X POST "/_ml/anomaly_detectors/{job_id}/_data"
```

