---
title: "Upsert rendered-audio chunk metadata"
method: PUT
path: "/v1/sync/audio"
tags: ["sync/data"]
---

# Upsert rendered-audio chunk metadata

`PUT /v1/sync/audio`

## Request

- Base URL: `https://api.ditto.audio` (the document declares no server; this is the origin it was published from)
- URL: `https://api.ditto.audio/v1/sync/audio`
- Auth: HTTP bearer

## Request body

- UpsertAudioChunkDto
  - `bookId` string, required
  - `chapterIndex` number, required
  - `paragraphIndex` number, required
  - `voiceId` string, required
  - `speed` number
  - `sampleRate` number
  - `sentenceSamples` number[]
  - `contentHash` string
  - `deleted` boolean

## Response `200`

---

[API](https://skmtc.dev/ditto/apis/ditto-audio-api.md) · [All operations](https://skmtc.dev/ditto/apis/ditto-audio-api/llms.txt) · [OpenAPI document](https://skmtc.dev/ditto/apis/ditto-audio-api/revisions/30c8d7c218da?raw)
