---
title: "For worker to set sync stats of a running attempt."
method: POST
path: "/v1/attempt/save_stats"
tags: ["attempt", "internal"]
---

# For worker to set sync stats of a running attempt.

`POST /v1/attempt/save_stats`

## Request body

- SaveStatsRequestBody
  - `attemptNumber` integer, required
  - `jobId` integer, required
  - `stats` AttemptStats, required
    - `bytesEmitted` integer
    - `estimatedBytes` integer
    - `estimatedRecords` integer
    - `recordsCommitted` integer
    - `recordsEmitted` integer
    - `stateMessagesEmitted` integer
  - `streamStats` AttemptStreamStats[]
    - `stats` AttemptStats, required
      - `bytesEmitted` integer
      - `estimatedBytes` integer
      - `estimatedRecords` integer
      - `recordsCommitted` integer
      - `recordsEmitted` integer
      - `stateMessagesEmitted` integer
    - `streamName` string, required
    - `streamNamespace` string

## Response `200`

Successful Operation

- InternalOperationResult
  - `succeeded` boolean, required

---

[API](https://skmtc.net/airbyte/apis/config.md) · [All operations](https://skmtc.net/airbyte/apis/config/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/airbyte/config/revisions/ce48e08e02ec/schema)
