---
title: "Modify A Single Segment"
method: PATCH
path: "/v1/dubbing/resource/{dubbing_id}/segment/{segment_id}/{language}"
tags: ["dubbing", "dubbing", "resource", "segment", "enterprise"]
deprecated: true
---

# Modify A Single Segment

`PATCH /v1/dubbing/resource/{dubbing_id}/segment/{segment_id}/{language}`

> **Deprecated.**

Modifies a single segment with new text and/or start/end times. Will update the values for only a specific language of a segment. Does not automatically regenerate the dub.

## Path parameters

- `dubbing_id` string, required — ID of the dubbing project.
- `segment_id` string, required — ID of the segment
- `language` string, required — ID of the language.

## 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

- SegmentUpdatePayload
  - `start_time` number, nullable
  - `end_time` number, nullable
  - `text` string, nullable

## Response `200`

Successful Response

- SegmentUpdateResponse
  - `version` integer, required

## Other responses

- `422` — Validation Error

---

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