---
title: "Update Dubbing Transcript Segments"
method: PATCH
path: "/v1/dubbing/project/{project_id}/transcript/segments"
tags: ["Dubbing"]
---

# Update Dubbing Transcript Segments

`PATCH /v1/dubbing/project/{project_id}/transcript/segments`

Enterprise only. Edit several source segments' text, speaker, or timing in one atomic request.

## Path parameters

- `project_id` string, required — Identifier of the dubbing project.

## Headers

- `xi-api-key` string, nullable — Your API key. This is required by most endpoints to access our API programmatically. You can view your xi-api-key using the 'Profile' tab on the website.

## Request body

- DubbingBulkSegmentUpdateRequest — Edit several source segments at once, applied atomically (all succeed or none do).
  - `segments` object, required — Map of segment id to the partial update to apply to that segment.

## Response `200`

Successful Response

- DubbingBulkSourceSegmentUpdateResponse — The result of a bulk source edit: the updated segments and the new revision.
  - `segments` DubbingTranscriptSegment[], required — The edited segments in their updated state.
    - `id` string, required — Stable identifier of the segment.
    - `text` string, required — The transcribed text of the segment.
    - `speaker_id` string, required — Identifier of the segment's speaker.
    - `start_s` number, required — Start time of the segment, in seconds.
    - `end_s` number, required — End time of the segment, in seconds.
    - `external_id` string, nullable — The caller-supplied external id for this segment, if one was provided.
  - `revision` integer, required — The project's source-transcript revision after the edits.

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/elevenlabs/apis/elevenlabs-api-documentation.md) · [All operations](https://skmtc.net/elevenlabs/apis/elevenlabs-api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/elevenlabs/elevenlabs-api-documentation/versions/57d56f34628a/schema)
