---
title: "POST /api/audits/digitization/{auditId}/history/"
method: POST
path: "/api/audits/digitization/{auditId}/history/"
tags: ["Audits"]
---

# POST /api/audits/digitization/{auditId}/history/

`POST /api/audits/digitization/{auditId}/history/`

Record a datapoints sync history entry for a digitized audit

## Path parameters

- `auditId` string, required

## Request body

- object
  - `byCompanyId` string, required
  - `forCompanyId` string, required
  - `onBehalfOfCompanyId` string, required
  - `failedDatapoints` unknown[], required
    - unknown

## Response `201`

Default Response

- object
  - `metadata` object, required
    - `success` boolean, required — True when the request succeeded.
  - `data` object, required
    - `id` string, required
    - `sourceType` string, required
    - `sourceId` string, required
    - `byCompanyId` string, required
    - `forCompanyId` string, required
    - `onBehalfOfCompanyId` string, required
    - `failedDatapoints` unknown[], nullable, required
      - unknown
    - `createdAt` string, date-time, required

## Changes

> 23 revisions in range; 1 not diffed.

- **2026-08-31** `97e51f27dc77` — 1 breaking, 1 info
  - the response property `data/failedDatapoints` became nullable for the status `201`
  - response property `data/failedDatapoints` list-of-types was narrowed by removing types `null` from media type `application/json` of response `201`

[Change history](https://skmtc.dev/retraced/apis/api-reference/changes/api/audits/digitization/:auditId/history/post.md)

---

[API](https://skmtc.dev/retraced/apis/api-reference.md) · [All operations](https://skmtc.dev/retraced/apis/api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/retraced/api-reference/revisions/fde251beb0ca/schema)
