One save of the web app’s visual (timeline) editor for one target language of a completed dub: move segments, shorten or lengthen them, change their speech rate, text or speaker, split them, create new ones and delete them — with the editor’s own save logic and limits. Engine v1 only (capability supportsTimelineEditor): on any other engine the request returns 400 — correct texts there with PATCH /api/v1/dubs//segments. All times are in seconds.
Every entry of updated carries the segment’s complete new state; an entry whose values are all as stored is reported as “unchanged” and is neither written nor counted. The changes reach the video with the next POST /api/v1/dubs//update, which re-voices every segment whose duration, text or speaker changed (pending_revoice in GET /api/v1/dubs//segments); an empty target_text mutes a segment. A changed source_text sent with the stored (or an empty) target_text clears the translation: the segment is translated from the new source line; sent with a new target_text, that translation is kept.
created adds segments, and the answer (200) maps each client_id to the new segment id. A split is the original segment in updated, shortened to its left half (with source_rebase when its source line is divided as well), plus its right half in created with split_from set to the original’s id; a split_from that is not in updated of the same request returns 400. deleted removes segments: the freed time stays a gap, and GET /api/v1/dubs//segments no longer lists them.
resync_retranslations: true re-translates and re-voices every segment whose source_text changed right away and voices every created segment that has a target_text (resynced_segment_ids); without it nothing is voiced before the next update.
Everything is checked before anything is written: a speech_rate outside 0.7–1.3, a duration under 0.8 s (a segment that is already shorter may keep its length), an unknown speaker, an invalid field, an id twice or in updated and deleted, or more than 500 entries return 400; a segment id that does not belong to this dub and target_language, or is deleted, returns 404. While a review is in progress, an update or a lip sync is running for this language, or a changed segment is being re-translated or re-voiced, the request returns 409. Nothing is written in any of these cases.
Every segment in updated that actually changes costs one of its 2 API edits — the same counter as PATCH /api/v1/dubs//segments and POST …/regenerate. A new segment starts with 1 edit used, both halves of a split continue with the original’s count + 1, and deleting costs nothing. If even one segment would go over the limit, the request returns 403 FORBIDDEN and nothing is written. A save that fails with an internal error while writing can already have written part of the changes, so its edits stay counted — check GET /api/v1/dubs//segments before you send it again. See Edit limits. No credits are charged.
BCP 47 code of the language whose timeline is saved. A language the dub does not have returns 404.
Available options:
af,
ar,
hy,
as,
az,
be,
bn,
bs,
bg,
ca,
ceb,
ny,
zh,
hr,
cs,
da,
nl,
en,
et,
fil,
fi,
fr,
gl,
ka,
de,
el,
gu,
ha,
he,
hi,
hu,
is,
id,
ga,
it,
ja,
jv,
kn,
kk,
ko,
ky,
lv,
ln,
lt,
lb,
mk,
ms,
ml,
mr,
ne,
no,
ps,
fa,
pl,
pt,
pa,
ro,
ru,
sr,
sd,
sk,
sl,
so,
es,
sw,
sv,
ta,
te,
th,
tr,
uk,
ur,
vi,
cy,
en-GB,
en-US,
es-419,
es-ES
created
object[]
New segments { client_id, split_from?, start_time, duration, speech_rate, target_text, source_text?, speaker } with the same field rules as updated. A created segment with a target_text is voiced as it stands; with only a source_text it is translated first; with neither it stays silent.
Show child attributes
updated
object[]
Existing segments with their complete new state { id, start_time, duration, speech_rate, target_text, source_text?, source_rebase?, speaker }; each id at most once. Segments left out stay as they are. At least one of created, updated and deleted must have an entry, and together they carry at most 500 entries.
Show child attributes
deleted
string<uuid>[]
Ids of segments to delete. The freed time stays a gap. Deleting costs no API edit.
true: re-translate and re-voice every segment whose source_text changed right away, and voice every created segment with a target_text right away. If starting one of them fails, the save still stands: resync_error says so and the rest are voiced by the next update. Defaults to false — nothing is voiced before POST /api/v1/dubs/{id}/update.
Response
The save went through; created maps each client_id to its new segment id.
status
string
required
Allowed value: "success"
response
object
required
Show child attributes
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Dubly API","description":"Create, edit and download AI-dubbed videos with the Dubly API.","colors":{"primary":"#7839EE","light":"#925BF1","dark":"#7839EE"},"logo":{"light":"https://mintcdn.com/dubly-ai-gmb-h/xP1t3V5QJCiqWCjC/logo/light.png?fit=max\u0026auto=format\u0026n=xP1t3V5QJCiqWCjC\u0026q=85\u0026s=d55c6a5c7f0e2e8c371d05df166434bf","dark":"https://mintcdn.com/dubly-ai-gmb-h/xP1t3V5QJCiqWCjC/logo/dark.png?fit=max\u0026auto=format\u0026n=xP1t3V5QJCiqWCjC\u0026q=85\u0026s=89a45ece27bfebff85158cd8eef5e7ba"},"favicon":"https://mintcdn.com/dubly-ai-gmb-h/xP1t3V5QJCiqWCjC/favicon.png?fit=max\u0026auto=format\u0026n=xP1t3V5QJCiqWCjC\u0026q=85\u0026s=65f59be39c2b79f27ddca728c82e3f94","api":{"playground":{"display":"interactive"},"examples":{"languages":["curl","javascript","python"]}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"dubly-ai-gmb-h","hasAudioNarration":false,"actualSubdomain":"dubly-ai-gmb-h","customDomains":[],"gitSource":{"type":"github","owner":"dubly-ai-gmbh","repo":"dubly_migration","deployBranch":"development","contentDirectory":"api-docs","isPrivate":true,"mountPath":"","label":"","_id":"6b06b1232ae2abea8a4259c9"},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b06b79c2ae2abea8a42df1d","clientVersion":"0.0.4304","searchFilterCounts":[{"language":"default","tag":"API Reference","count":22},{"language":"default","tag":"Guides","count":11},{"language":"default","tag":"Dub editing","count":6},{"language":"default","tag":"Dubs","count":5},{"language":"default","tag":"Lip sync","count":4},{"language":"default","tag":"Get started","count":3},{"language":"default","tag":"Create dubs","count":3},{"language":"default","tag":"Account","count":2},{"language":"default","tag":"Subtitled video","count":2}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/dub-editing/save-dub-timeline","slug":"/api-reference/dub-editing/save-dub-timeline","pageMetadata":{"title":"Save timeline edits of one language","description":"One save of the web app's visual (timeline) editor for one target language of a completed dub: move segments, shorten or lengthen them, change their speech rate, text or speaker, split them, create new ones and delete them — with the editor's own save logic and limits. Engine v1 only (capability supportsTimelineEditor): on any other engine the request returns 400 — correct texts there with PATCH /api/v1/dubs/{id}/segments. All times are in seconds.\n\nEvery entry of updated carries the segment's complete new state; an entry whose values are all as stored is reported as \"unchanged\" and is neither written nor counted. The changes reach the video with the next POST /api/v1/dubs/{id}/update, which re-voices every segment whose duration, text or speaker changed (pending_revoice in GET /api/v1/dubs/{id}/segments); an empty target_text mutes a segment. A changed source_text sent with the stored (or an empty) target_text clears the translation: the segment is translated from the new source line; sent with a new target_text, that translation is kept.\n\ncreated adds segments, and the answer (200) maps each client_id to the new segment id. A split is the original segment in updated, shortened to its left half (with source_rebase when its source line is divided as well), plus its right half in created with split_from set to the original's id; a split_from that is not in updated of the same request returns 400. deleted removes segments: the freed time stays a gap, and GET /api/v1/dubs/{id}/segments no longer lists them.\n\nresync_retranslations: true re-translates and re-voices every segment whose source_text changed right away and voices every created segment that has a target_text (resynced_segment_ids); without it nothing is voiced before the next update.\n\nEverything is checked before anything is written: a speech_rate outside 0.7–1.3, a duration under 0.8 s (a segment that is already shorter may keep its length), an unknown speaker, an invalid field, an id twice or in updated and deleted, or more than 500 entries return 400; a segment id that does not belong to this dub and target_language, or is deleted, returns 404. While a review is in progress, an update or a lip sync is running for this language, or a changed segment is being re-translated or re-voiced, the request returns 409. Nothing is written in any of these cases.\n\nEvery segment in updated that actually changes costs one of its 2 API edits — the same counter as PATCH /api/v1/dubs/{id}/segments and POST …/regenerate. A new segment starts with 1 edit used, both halves of a split continue with the original's count + 1, and deleting costs nothing. If even one segment would go over the limit, the request returns 403 FORBIDDEN and nothing is written. A save that fails with an internal error while writing can already have written part of the changes, so its edits stay counted — check GET /api/v1/dubs/{id}/segments before you send it again. See [Edit limits](/guides/edit-limits). No credits are charged.","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/dubs/{id}/segments/timeline","href":"/api-reference/dub-editing/save-dub-timeline","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n a: \"a\",\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsxs(_components.p, {\n children: [\"One save of the web app’s visual (timeline) editor for one target language of a completed dub: move segments, shorten or lengthen them, change their speech rate, text or speaker, split them, create new ones and delete them — with the editor’s own save logic and limits. Engine v1 only (capability supportsTimelineEditor): on any other engine the request returns 400 — correct texts there with PATCH /api/v1/dubs/\", \"/segments. All times are in seconds.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"Every entry of updated carries the segment’s complete new state; an entry whose values are all as stored is reported as “unchanged” and is neither written nor counted. The changes reach the video with the next POST /api/v1/dubs/\", \"/update, which re-voices every segment whose duration, text or speaker changed (pending_revoice in GET /api/v1/dubs/\", \"/segments); an empty target_text mutes a segment. A changed source_text sent with the stored (or an empty) target_text clears the translation: the segment is translated from the new source line; sent with a new target_text, that translation is kept.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"created adds segments, and the answer (200) maps each client_id to the new segment id. A split is the original segment in updated, shortened to its left half (with source_rebase when its source line is divided as well), plus its right half in created with split_from set to the original’s id; a split_from that is not in updated of the same request returns 400. deleted removes segments: the freed time stays a gap, and GET /api/v1/dubs/\", \"/segments no longer lists them.\"]\n }), \"\\n\", _jsx(_components.p, {\n children: \"resync_retranslations: true re-translates and re-voices every segment whose source_text changed right away and voices every created segment that has a target_text (resynced_segment_ids); without it nothing is voiced before the next update.\"\n }), \"\\n\", _jsx(_components.p, {\n children: \"Everything is checked before anything is written: a speech_rate outside 0.7–1.3, a duration under 0.8 s (a segment that is already shorter may keep its length), an unknown speaker, an invalid field, an id twice or in updated and deleted, or more than 500 entries return 400; a segment id that does not belong to this dub and target_language, or is deleted, returns 404. While a review is in progress, an update or a lip sync is running for this language, or a changed segment is being re-translated or re-voiced, the request returns 409. Nothing is written in any of these cases.\"\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"Every segment in updated that actually changes costs one of its 2 API edits — the same counter as PATCH /api/v1/dubs/\", \"/segments and POST …/regenerate. A new segment starts with 1 edit used, both halves of a split continue with the original’s count + 1, and deleting costs nothing. If even one segment would go over the limit, the request returns 403 FORBIDDEN and nothing is written. A save that fails with an internal error while writing can already have written part of the changes, so its edits stay counted — check GET /api/v1/dubs/\", \"/segments before you send it again. See \", _jsx(_components.a, {\n href: \"/guides/edit-limits\",\n children: \"Edit limits\"\n }), \". No credits are charged.\"]\n })]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Save timeline edits of one language","description":"One save of the web app's visual (timeline) editor for one target language of a completed dub: move segments, shorten or lengthen them, change their speech rate, text or speaker, split them, create new ones and delete them — with the editor's own save logic and limits. Engine v1 only (capability supportsTimelineEditor): on any other engine the request returns 400 — correct texts there with PATCH /api/v1/dubs/{id}/segments. All times are in seconds.\n\nEvery entry of updated carries the segment's complete new state; an entry whose values are all as stored is reported as \"unchanged\" and is neither written nor counted. The changes reach the video with the next POST /api/v1/dubs/{id}/update, which re-voices every segment whose duration, text or speaker changed (pending_revoice in GET /api/v1/dubs/{id}/segments); an empty target_text mutes a segment. A changed source_text sent with the stored (or an empty) target_text clears the translation: the segment is translated from the new source line; sent with a new target_text, that translation is kept.\n\ncreated adds segments, and the answer (200) maps each client_id to the new segment id. A split is the original segment in updated, shortened to its left half (with source_rebase when its source line is divided as well), plus its right half in created with split_from set to the original's id; a split_from that is not in updated of the same request returns 400. deleted removes segments: the freed time stays a gap, and GET /api/v1/dubs/{id}/segments no longer lists them.\n\nresync_retranslations: true re-translates and re-voices every segment whose source_text changed right away and voices every created segment that has a target_text (resynced_segment_ids); without it nothing is voiced before the next update.\n\nEverything is checked before anything is written: a speech_rate outside 0.7–1.3, a duration under 0.8 s (a segment that is already shorter may keep its length), an unknown speaker, an invalid field, an id twice or in updated and deleted, or more than 500 entries return 400; a segment id that does not belong to this dub and target_language, or is deleted, returns 404. While a review is in progress, an update or a lip sync is running for this language, or a changed segment is being re-translated or re-voiced, the request returns 409. Nothing is written in any of these cases.\n\nEvery segment in updated that actually changes costs one of its 2 API edits — the same counter as PATCH /api/v1/dubs/{id}/segments and POST …/regenerate. A new segment starts with 1 edit used, both halves of a split continue with the original's count + 1, and deleting costs nothing. If even one segment would go over the limit, the request returns 403 FORBIDDEN and nothing is written. A save that fails with an internal error while writing can already have written part of the changes, so its edits stay counted — check GET /api/v1/dubs/{id}/segments before you send it again. See [Edit limits](/guides/edit-limits). No credits are charged.","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/dubs/{id}/segments/timeline","href":"/api-reference/dub-editing/save-dub-timeline","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"save-dub-timeline","tags":["Dub editing"],"summary":"Save timeline edits of one language","description":"One save of the web app's visual (timeline) editor for one target language of a completed dub: move segments, shorten or lengthen them, change their speech rate, text or speaker, split them, create new ones and delete them — with the editor's own save logic and limits. Engine v1 only (capability supportsTimelineEditor): on any other engine the request returns 400 — correct texts there with PATCH /api/v1/dubs/{id}/segments. All times are in seconds.\n\nEvery entry of updated carries the segment's complete new state; an entry whose values are all as stored is reported as \"unchanged\" and is neither written nor counted. The changes reach the video with the next POST /api/v1/dubs/{id}/update, which re-voices every segment whose duration, text or speaker changed (pending_revoice in GET /api/v1/dubs/{id}/segments); an empty target_text mutes a segment. A changed source_text sent with the stored (or an empty) target_text clears the translation: the segment is translated from the new source line; sent with a new target_text, that translation is kept.\n\ncreated adds segments, and the answer (200) maps each client_id to the new segment id. A split is the original segment in updated, shortened to its left half (with source_rebase when its source line is divided as well), plus its right half in created with split_from set to the original's id; a split_from that is not in updated of the same request returns 400. deleted removes segments: the freed time stays a gap, and GET /api/v1/dubs/{id}/segments no longer lists them.\n\nresync_retranslations: true re-translates and re-voices every segment whose source_text changed right away and voices every created segment that has a target_text (resynced_segment_ids); without it nothing is voiced before the next update.\n\nEverything is checked before anything is written: a speech_rate outside 0.7–1.3, a duration under 0.8 s (a segment that is already shorter may keep its length), an unknown speaker, an invalid field, an id twice or in updated and deleted, or more than 500 entries return 400; a segment id that does not belong to this dub and target_language, or is deleted, returns 404. While a review is in progress, an update or a lip sync is running for this language, or a changed segment is being re-translated or re-voiced, the request returns 409. Nothing is written in any of these cases.\n\nEvery segment in updated that actually changes costs one of its 2 API edits — the same counter as PATCH /api/v1/dubs/{id}/segments and POST …/regenerate. A new segment starts with 1 edit used, both halves of a split continue with the original's count + 1, and deleting costs nothing. If even one segment would go over the limit, the request returns 403 FORBIDDEN and nothing is written. A save that fails with an internal error while writing can already have written part of the changes, so its edits stay counted — check GET /api/v1/dubs/{id}/segments before you send it again. See [Edit limits](/guides/edit-limits). No credits are charged.","security":["2f29f415-0036-4534-abba-28e5603dcd19"],"parameters":["042e86d0-6984-4d65-8a5c-06b8aa114198"],"requestBody":"ac5bb3af-ed87-4ab6-8291-7a64733ce773","responses":{"200":"7bf54b4b-db44-42b4-be01-3e12b1a64ff6","400":"cb2e5566-2fef-4f3a-9be3-6e60a345cfaf","401":"ad70c340-7678-466f-bed8-321ef58e5acb","403":"d3ccd2f7-f66c-413f-a1d2-7eb911495dc9","404":"3fa4b290-d858-4951-a0e1-354715864253","409":"29f754d1-5deb-467e-a055-35222ce2cbc1","500":"c27fdde1-fd0c-462b-95d1-9b03b3a3d348"},"method":"post","type":"path","servers":["db8eed0b-c86b-4729-8032-f0258281e0a8"],"path":"/api/v1/dubs/{id}/segments/timeline","baseUrlOptions":["https://app.dubly.ai"],"title":"Save timeline edits of one language","codeSamples":[],"requestExampleLanguages":["bash","javascript","python"],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"042e86d0-6984-4d65-8a5c-06b8aa114198":{"name":"id","in":"path","required":true,"description":"The dub ID (path parameter). The dub must have finished processing (status \"Dubbed\"); otherwise the request returns 400.","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$","isRequired":true,"description":"The dub ID (path parameter). The dub must have finished processing (status \"Dubbed\"); otherwise the request returns 400.","uniqueKey":"","typeLabel":"string\u003cuuid>"},"example":"a1b2c3d4-e5f6-7890-abcd-ef1234567890"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"target_language":{"type":"string","enum":["af","ar","hy","as","az","be","bn","bs","bg","ca","ceb","ny","zh","hr","cs","da","nl","en","et","fil","fi","fr","gl","ka","de","el","gu","ha","he","hi","hu","is","id","ga","it","ja","jv","kn","kk","ko","ky","lv","ln","lt","lb","mk","ms","ml","mr","ne","no","ps","fa","pl","pt","pa","ro","ru","sr","sd","sk","sl","so","es","sw","sv","ta","te","th","tr","uk","ur","vi","cy","en-GB","en-US","es-419","es-ES"],"description":"BCP 47 code of the language whose timeline is saved. A language the dub does not have returns 404.","isRequired":true,"uniqueKey":"target_language","typeLabel":"enum\u003cstring>"},"created":{"default":[],"type":"array","items":{"type":"object","properties":{"client_id":{"type":"string","minLength":1,"description":"Your own id for the entry, unique in this request. The answer maps it to the new segment id.","isRequired":true,"uniqueKey":"created.items.[INDEX].client_id","typeLabel":"string"},"start_time":{"type":"number","minimum":0,"description":"Start in seconds (≥ 0).","isRequired":true,"uniqueKey":"created.items.[INDEX].start_time","typeLabel":"number"},"duration":{"type":"number","exclusiveMinimum":0,"description":"Length in seconds, at least 0.8 s.","isRequired":true,"uniqueKey":"created.items.[INDEX].duration","typeLabel":"number"},"speech_rate":{"type":"number","minimum":0.7,"maximum":1.3,"description":"Speech rate from 0.7 to 1.3 (1 = normal).","isRequired":true,"uniqueKey":"created.items.[INDEX].speech_rate","typeLabel":"number"},"target_text":{"type":"string","description":"Translation of the new segment, voiced as it stands. An empty string: translated from source_text first, or silent without one.","isRequired":true,"uniqueKey":"created.items.[INDEX].target_text","typeLabel":"string"},"speaker":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"Speaker id from speakers of GET /api/v1/dubs/{id}/segments (\"1\", \"2\", …); an unknown id returns 400. Sent as a number (1) or as that string (\"1\").","isRequired":true,"uniqueKey":"created.items.[INDEX].speaker","typeLabel":"integer"},"split_from":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Only for the right half of a split: the id of the original segment, which must be in updated of this request with its shortened left half (otherwise 400). The half starts with the original's API edits used. That includes this save: both halves continue with the original's count + 1.","uniqueKey":"created.items.[INDEX].split_from","typeLabel":"string\u003cuuid>"},"source_text":{"default":"","type":"string","description":"Source line of the new segment — for the right half of a split, the part of the original line it keeps. Defaults to an empty string (no source line).","uniqueKey":"created.items.[INDEX].source_text","typeLabel":"string"}},"required":["client_id","start_time","duration","speech_rate","target_text","speaker"],"additionalProperties":false,"uniqueKey":"created.items.[INDEX]","typeLabel":"object"},"description":"New segments { client_id, split_from?, start_time, duration, speech_rate, target_text, source_text?, speaker } with the same field rules as updated. A created segment with a target_text is voiced as it stands; with only a source_text it is translated first; with neither it stays silent.","uniqueKey":"created","typeLabel":"object[]"},"updated":{"default":[],"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"Segment id from GET /api/v1/dubs/{id}/segments. An id of another dub or language, or a deleted one, returns 404.","isRequired":true,"uniqueKey":"updated.items.[INDEX].id","typeLabel":"string\u003cuuid>"},"start_time":{"type":"number","minimum":0,"description":"Start in seconds (≥ 0), like start in GET /api/v1/dubs/{id}/segments.","isRequired":true,"uniqueKey":"updated.items.[INDEX].start_time","typeLabel":"number"},"duration":{"type":"number","exclusiveMinimum":0,"description":"Length in seconds (end − start in GET /api/v1/dubs/{id}/segments), at least 0.8 s — a segment that is already shorter may keep its length, but not get any shorter.","isRequired":true,"uniqueKey":"updated.items.[INDEX].duration","typeLabel":"number"},"speech_rate":{"type":"number","minimum":0.7,"maximum":1.3,"description":"Speech rate from 0.7 to 1.3 (1 = normal).","isRequired":true,"uniqueKey":"updated.items.[INDEX].speech_rate","typeLabel":"number"},"target_text":{"type":"string","description":"Translation. An empty string mutes the segment — unless source_text changes in the same entry: then the segment is translated from the new source line.","isRequired":true,"uniqueKey":"updated.items.[INDEX].target_text","typeLabel":"string"},"speaker":{"type":"integer","minimum":1,"maximum":9007199254740991,"description":"Speaker id from speakers of GET /api/v1/dubs/{id}/segments (\"1\", \"2\", …); an unknown id returns 400. Sent as a number (1) or as that string (\"1\").","isRequired":true,"uniqueKey":"updated.items.[INDEX].speaker","typeLabel":"integer"},"source_text":{"type":"string","description":"Rewritten source text; left out, the source stays as it is. With the stored or an empty target_text the segment is translated from it (at the next update, or right away with resync_retranslations).","uniqueKey":"updated.items.[INDEX].source_text","typeLabel":"string"},"source_rebase":{"type":"object","properties":{"text":{"type":"string","description":"The part of the original source line this half keeps.","isRequired":true,"uniqueKey":"updated.items.[INDEX].source_rebase.text","typeLabel":"string"},"start_time":{"type":"number","minimum":0,"description":"Start of this half inside the original segment, in seconds (≥ 0).","isRequired":true,"uniqueKey":"updated.items.[INDEX].source_rebase.start_time","typeLabel":"number"},"duration":{"type":"number","exclusiveMinimum":0,"description":"Length of this half's share of the original source line, in seconds.","isRequired":true,"uniqueKey":"updated.items.[INDEX].source_rebase.duration","typeLabel":"number"}},"required":["text","start_time","duration"],"additionalProperties":false,"description":"The left half of a split only: { text, start_time, duration } — the part of the original source line this half keeps, with its start inside the original segment and its length in seconds. Gives the half a source line of its own; nothing is re-translated.","uniqueKey":"updated.items.[INDEX].source_rebase","typeLabel":"object"}},"required":["id","start_time","duration","speech_rate","target_text","speaker"],"additionalProperties":false,"uniqueKey":"updated.items.[INDEX]","typeLabel":"object"},"description":"Existing segments with their complete new state { id, start_time, duration, speech_rate, target_text, source_text?, source_rebase?, speaker }; each id at most once. Segments left out stay as they are. At least one of created, updated and deleted must have an entry, and together they carry at most 500 entries.","uniqueKey":"updated","typeLabel":"object[]"},"deleted":{"default":[],"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","uniqueKey":"deleted.items.[INDEX]","typeLabel":"string\u003cuuid>"},"description":"Ids of segments to delete. The freed time stays a gap. Deleting costs no API edit.","uniqueKey":"deleted","typeLabel":"string\u003cuuid>[]"},"resync_retranslations":{"type":"boolean","description":"true: re-translate and re-voice every segment whose source_text changed right away, and voice every created segment with a target_text right away. If starting one of them fails, the save still stands: resync_error says so and the rest are voiced by the next update. Defaults to false — nothing is voiced before POST /api/v1/dubs/{id}/update.","uniqueKey":"resync_retranslations","typeLabel":"boolean"}},"required":["target_language"],"additionalProperties":false,"uniqueKey":"","typeLabel":"object"},"examples":{"split":{"title":"split","summary":"Split a segment and delete another","value":{"target_language":"de","updated":[{"id":"5b1e7c2a-9d43-4f8e-a6b0-2c7d9e1f3a54","start_time":0.48,"duration":1.32,"speech_rate":1,"target_text":"Willkommen zu unserer","source_rebase":{"text":"Welcome to our","start_time":0,"duration":1.32},"speaker":1}],"created":[{"client_id":"split-right","split_from":"5b1e7c2a-9d43-4f8e-a6b0-2c7d9e1f3a54","start_time":1.8,"duration":1.32,"speech_rate":1,"target_text":"Produkttour.","source_text":"product tour.","speaker":1}],"deleted":["c9e0d2f1-47ab-4c3e-8f21-6a5b4d3c2e10"],"resync_retranslations":false}},"resync":{"title":"resync","summary":"Rewrite a source line, add a segment and voice both right away","value":{"target_language":"de","updated":[{"id":"5b1e7c2a-9d43-4f8e-a6b0-2c7d9e1f3a54","start_time":0.48,"duration":2.64,"speech_rate":1,"target_text":"","source_text":"Welcome to our product demo.","speaker":1}],"created":[{"client_id":"new-1","start_time":3.5,"duration":1.6,"speech_rate":1.1,"target_text":"Viel Spaß!","speaker":2}],"resync_retranslations":true}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"7bf54b4b-db44-42b4-be01-3e12b1a64ff6":{"description":"The save went through; created maps each client_id to its new segment id.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"success","isRequired":true,"uniqueKey":"status","typeLabel":"string"},"response":{"type":"object","properties":{"dub_id":{"type":"string","isRequired":true,"uniqueKey":"response.dub_id","typeLabel":"string"},"target_language":{"type":"string","isRequired":true,"uniqueKey":"response.target_language","typeLabel":"string"},"created":{"type":"array","items":{"type":"object","properties":{"client_id":{"type":"string","isRequired":true,"uniqueKey":"response.created.items.[INDEX].client_id","typeLabel":"string"},"id":{"type":"string","description":"The new segment id — use it like any id from GET /api/v1/dubs/{id}/segments.","isRequired":true,"uniqueKey":"response.created.items.[INDEX].id","typeLabel":"string"},"split_from":{"oneOf":[{"type":"string","description":"The segment this one was split from (split_from of the request), else null.","isRequired":true,"uniqueKey":"response.created.items.[INDEX].split_from.oneOf.0","typeLabel":"string"},{"type":"null","description":"The segment this one was split from (split_from of the request), else null.","isRequired":true,"uniqueKey":"response.created.items.[INDEX].split_from.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"response.created.items.[INDEX].split_from","typeLabel":"string | null"},"api_edits_remaining":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"API edits left for the new segment (at most 2).","isRequired":true,"uniqueKey":"response.created.items.[INDEX].api_edits_remaining","typeLabel":"integer"}},"required":["client_id","id","split_from","api_edits_remaining"],"uniqueKey":"response.created.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"response.created","typeLabel":"object[]"},"updated":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"response.updated.items.[INDEX].id","typeLabel":"string"},"result":{"type":"string","enum":["updated","unchanged"],"description":"\"updated\", or \"unchanged\": every field already had the stored value — neither written nor counted.","isRequired":true,"uniqueKey":"response.updated.items.[INDEX].result","typeLabel":"enum\u003cstring>"},"api_edits_remaining":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"API edits left for this segment after this save (at most 2).","isRequired":true,"uniqueKey":"response.updated.items.[INDEX].api_edits_remaining","typeLabel":"integer"}},"required":["id","result","api_edits_remaining"],"uniqueKey":"response.updated.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"response.updated","typeLabel":"object[]"},"deleted":{"type":"array","items":{"type":"string","uniqueKey":"response.deleted.items.[INDEX]","typeLabel":"string"},"description":"The deleted segment ids.","isRequired":true,"uniqueKey":"response.deleted","typeLabel":"string[]"},"resynced_segment_ids":{"type":"array","items":{"type":"string","uniqueKey":"response.resynced_segment_ids.items.[INDEX]","typeLabel":"string"},"description":"resync_retranslations: true only — the segments whose translation and voice-over were started right away; otherwise empty.","isRequired":true,"uniqueKey":"response.resynced_segment_ids","typeLabel":"string[]"},"resync_error":{"type":"string","description":"resync_retranslations: true only — the save went through, but starting the immediate re-voicing failed; the remaining segments are voiced by the next POST /api/v1/dubs/{id}/update.","uniqueKey":"response.resync_error","typeLabel":"string"}},"required":["dub_id","target_language","created","updated","deleted","resynced_segment_ids"],"isRequired":true,"uniqueKey":"response","typeLabel":"object"}},"required":["status","response"],"uniqueKey":"","typeLabel":"object"},"examples":{"split":{"title":"split","summary":"Split and delete saved","value":{"status":"success","response":{"dub_id":"a1b2c3d4-e5f6-7890-abcd-ef1234567890","target_language":"de","created":[{"client_id":"split-right","id":"7a3c9e1b-5d2f-4b8a-9c6e-1f0d3b5a7c92","split_from":"5b1e7c2a-9d43-4f8e-a6b0-2c7d9e1f3a54","api_edits_remaining":1}],"updated":[{"id":"5b1e7c2a-9d43-4f8e-a6b0-2c7d9e1f3a54","result":"updated","api_edits_remaining":1}],"deleted":["c9e0d2f1-47ab-4c3e-8f21-6a5b4d3c2e10"],"resynced_segment_ids":[]}}},"resync":{"title":"resync","summary":"Saved; the re-translation started, voicing the new segment did not","value":{"status":"success","response":{"dub_id":"a1b2c3d4-e5f6-7890-abcd-ef1234567890","target_language":"de","created":[{"client_id":"new-1","id":"e4f8a2c6-1b3d-4e5f-9a7b-8c0d2e4f6a18","split_from":null,"api_edits_remaining":1}],"updated":[{"id":"5b1e7c2a-9d43-4f8e-a6b0-2c7d9e1f3a54","result":"updated","api_edits_remaining":1}],"deleted":[],"resynced_segment_ids":["5b1e7c2a-9d43-4f8e-a6b0-2c7d9e1f3a54"],"resync_error":"The edits were saved, but re-voicing segment e4f8a2c6-1b3d-4e5f-9a7b-8c0d2e4f6a18 right away failed: Failed to sync the segment. Please try again. The remaining segments are voiced by POST /api/v1/dubs/{id}/update."}}}},"exampleType":"examples"}},"exampleType":"examples"},"cb2e5566-2fef-4f3a-9be3-6e60a345cfaf":{"description":"BAD_REQUEST — The dub ID is not a UUID; the dub has not finished processing (status \"Dubbed\") or its engine has no timeline editing (supportsTimelineEditor); or a field is invalid — a speech_rate outside 0.7–1.3, a duration under 0.8 s (a segment that is already shorter may keep its length), an unknown speaker, an unknown field, an id twice or in updated and deleted, a client_id twice, a split_from that is not in updated, no entry at all or more than 500 entries. Nothing was written. Example message: \"created[0].split_from: segment 5b1e7c2a-9d43-4f8e-a6b0-2c7d9e1f3a54 must also be in updated of this request (with its shortened left half)\".","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"error","isRequired":true,"uniqueKey":"status","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"required":["status","message"],"description":"The error envelope. The HTTP status carries the error code; `message` says what went wrong, in English.","examples":[{"status":"error","message":"Dub not found"}],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"status":"error","message":"Dub not found"}}},"exampleType":"generated"}},"exampleType":"generated"},"ad70c340-7678-466f-bed8-321ef58e5acb":{"description":"UNAUTHORIZED — Missing or invalid API token.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"error","isRequired":true,"uniqueKey":"status","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"required":["status","message"],"description":"The error envelope. The HTTP status carries the error code; `message` says what went wrong, in English.","examples":[{"status":"error","message":"Dub not found"}],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"status":"error","message":"Dub not found"}}},"exampleType":"generated"}},"exampleType":"generated"},"d3ccd2f7-f66c-413f-a1d2-7eb911495dc9":{"description":"FORBIDDEN — A segment in updated that changes has used all its 2 API edits (shared with PATCH /api/v1/dubs/{id}/segments and POST …/regenerate). Nothing was written, nothing was counted.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"error","isRequired":true,"uniqueKey":"status","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"required":["status","message"],"description":"The error envelope. The HTTP status carries the error code; `message` says what went wrong, in English.","examples":[{"status":"error","message":"Dub not found"}],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"status":"error","message":"Dub not found"}}},"exampleType":"generated"}},"exampleType":"generated"},"3fa4b290-d858-4951-a0e1-354715864253":{"description":"NOT_FOUND — An unknown dub, a dub of another account or a target_language the dub does not have, or a segment id in updated or deleted that does not belong to this dub and target_language, or is deleted. Nothing was written.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"error","isRequired":true,"uniqueKey":"status","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"required":["status","message"],"description":"The error envelope. The HTTP status carries the error code; `message` says what went wrong, in English.","examples":[{"status":"error","message":"Dub not found"}],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"status":"error","message":"Dub not found"}}},"exampleType":"generated"}},"exampleType":"generated"},"29f754d1-5deb-467e-a055-35222ce2cbc1":{"description":"CONFLICT — A review is in progress, an update or a lip sync is running for this language, or a changed segment is being re-translated or re-voiced. Nothing was written.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"error","isRequired":true,"uniqueKey":"status","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"required":["status","message"],"description":"The error envelope. The HTTP status carries the error code; `message` says what went wrong, in English.","examples":[{"status":"error","message":"Dub not found"}],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"status":"error","message":"Dub not found"}}},"exampleType":"generated"}},"exampleType":"generated"},"c27fdde1-fd0c-462b-95d1-9b03b3a3d348":{"description":"INTERNAL_ERROR — The dub, its segments or its API usage could not be read, or the API edit limit could not be checked — nothing was written. Or the save failed while writing: part of it may already be written, so its API edits stay counted — check the segments with GET /api/v1/dubs/{id}/segments before you retry.","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"error","isRequired":true,"uniqueKey":"status","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"required":["status","message"],"description":"The error envelope. The HTTP status carries the error code; `message` says what went wrong, in English.","examples":[{"status":"error","message":"Dub not found"}],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"status":"error","message":"Dub not found"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"2f29f415-0036-4534-abba-28e5603dcd19":{"bearerAuth":{"type":"http","scheme":"bearer","description":"An API token from Settings → API in the Dubly web app, sent as `Authorization: Bearer \u003ctoken>`.","scopes":[],"schemeName":"bearerAuth"}}},"servers":{"db8eed0b-c86b-4729-8032-f0258281e0a8":{"url":"https://app.dubly.ai","description":"Production"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"An API token from Settings → API in the Dubly web app, sent as `Authorization: Bearer \u003ctoken>`.","scopes":[],"schemeName":"bearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"An API token from Settings → API in the Dubly web app, sent as `Authorization: Bearer \u003ctoken>`.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"openapi.json"},"subdomain":"dubly-ai-gmb-h","siteName":"Dubly API","title":"Save timeline edits of one language - Dubly API","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-25T10:25:38.010Z","originalFileLocation":"api-reference/dub-editing/save-dub-timeline.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"One save of the web app\u0026#x27;s visual (timeline) editor for one target language of a completed dub: move segments, shorten or lengthen them, change their speech rate, text or speaker, split them, create new ones and delete them — with the editor\u0026#x27;s own save logic and limits. Engine v1 only (capability supportsTimelineEditor): on any other engine the request returns 400 — correct texts there with PATCH /api/v1/dubs/{id}/segments. All times are in seconds. Every entry of updated carries the segment\u0026#x27;s complete new state; an entry whose values are all as stored is reported as \u0026quot;unchanged\u0026quot; and is neither written nor counted. The changes reach the video with the next POST /api/v1/dubs/{id}/update, which re-voices every segment whose duration, text or speaker changed (pending_revoice in GET /api/v1/dubs/{id}/segments); an empty target_text mutes a segment. A changed source_text sent with the stored (or an empty) target_text clears the translation: the segment is translated from the new source line; sent with a new target_text, that translation is kept. created adds segments, and the answer (200) maps each client_id to the new segment id. A split is the original segment in updated, shortened to its left half (with source_rebase when its source line is divided as well), plus its right half in created with split_from set to the original\u0026#x27;s id; a split_from that is not in updated of the same request returns 400. deleted removes segments: the freed time stays a gap, and GET /api/v1/dubs/{id}/segments no longer lists them. resync_retranslations: true re-translates and re-voices every segment whose source_text changed right away and voices every created segment that has a target_text (resynced_segment_ids); without it nothing is voiced before the next update. Everything is checked before anything is written: a speech_rate outside 0.7–1.3, a duration under 0.8 s (a segment that is already shorter may keep its length), an unknown speaker, an invalid field, an id twice or in updated and deleted, or more than 500 entries return 400; a segment id that does not belong to this dub and target_language, or is deleted, returns 404. While a review is in progress, an update or a lip sync is running for this language, or a changed segment is being re-translated or re-voiced, the request returns 409. Nothing is written in any of these cases. Every segment in updated that actually changes costs one of its 2 API edits — the same counter as PATCH /api/v1/dubs/{id}/segments and POST …/regenerate. A new segment starts with 1 edit used, both halves of a split continue with the original\u0026#x27;s count + 1, and deleting costs nothing. If even one segment would go over the limit, the request returns 403 FORBIDDEN and nothing is written. A save that fails with an internal error while writing can already have written part of the changes, so its edits stay counted — check GET /api/v1/dubs/{id}/segments before you send it again. See Edit limits. No credits are charged.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Dubly API\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/dubly-ai-gmb-h/Rdyrasup2lxyg39-/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/dubly-ai-gmb-h/Rdyrasup2lxyg39-/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/dubly-ai-gmb-h/Rdyrasup2lxyg39-/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/dubly-ai-gmb-h/Rdyrasup2lxyg39-/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/dubly-ai-gmb-h/Rdyrasup2lxyg39-/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/dubly-ai-gmb-h/Rdyrasup2lxyg39-/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/dubly-ai-gmb-h/Rdyrasup2lxyg39-/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/dubly-ai-gmb-h/Rdyrasup2lxyg39-/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/dubly-ai-gmb-h/Rdyrasup2lxyg39-/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Save timeline edits of one language - Dubly API\">\u003cmeta data-mint-head property=\"og:description\" content=\"One save of the web app\u0026#x27;s visual (timeline) editor for one target language of a completed dub: move segments, shorten or lengthen them, change their speech rate, text or speaker, split them, create new ones and delete them — with the editor\u0026#x27;s own save logic and limits. Engine v1 only (capability supportsTimelineEditor): on any other engine the request returns 400 — correct texts there with PATCH /api/v1/dubs/{id}/segments. All times are in seconds. Every entry of updated carries the segment\u0026#x27;s complete new state; an entry whose values are all as stored is reported as \u0026quot;unchanged\u0026quot; and is neither written nor counted. The changes reach the video with the next POST /api/v1/dubs/{id}/update, which re-voices every segment whose duration, text or speaker changed (pending_revoice in GET /api/v1/dubs/{id}/segments); an empty target_text mutes a segment. A changed source_text sent with the stored (or an empty) target_text clears the translation: the segment is translated from the new source line; sent with a new target_text, that translation is kept. created adds segments, and the answer (200) maps each client_id to the new segment id. A split is the original segment in updated, shortened to its left half (with source_rebase when its source line is divided as well), plus its right half in created with split_from set to the original\u0026#x27;s id; a split_from that is not in updated of the same request returns 400. deleted removes segments: the freed time stays a gap, and GET /api/v1/dubs/{id}/segments no longer lists them. resync_retranslations: true re-translates and re-voices every segment whose source_text changed right away and voices every created segment that has a target_text (resynced_segment_ids); without it nothing is voiced before the next update. Everything is checked before anything is written: a speech_rate outside 0.7–1.3, a duration under 0.8 s (a segment that is already shorter may keep its length), an unknown speaker, an invalid field, an id twice or in updated and deleted, or more than 500 entries return 400; a segment id that does not belong to this dub and target_language, or is deleted, returns 404. While a review is in progress, an update or a lip sync is running for this language, or a changed segment is being re-translated or re-voiced, the request returns 409. Nothing is written in any of these cases. Every segment in updated that actually changes costs one of its 2 API edits — the same counter as PATCH /api/v1/dubs/{id}/segments and POST …/regenerate. A new segment starts with 1 edit used, both halves of a split continue with the original\u0026#x27;s count + 1, and deleting costs nothing. If even one segment would go over the limit, the request returns 403 FORBIDDEN and nothing is written. A save that fails with an internal error while writing can already have written part of the changes, so its edits stay counted — check GET /api/v1/dubs/{id}/segments before you send it again. See Edit limits. No credits are charged.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Dubly API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://dubly-ai-gmb-h.mintlify.app/api-reference/dub-editing/save-dub-timeline\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://dubly-ai-gmb-h.mintlify.site/_mintlify/api/og/v2?division=Dub+editing\u0026amp;title=Save+timeline+edits+of+one+language\u0026amp;description=One+save+of+the+web+app%27s+visual+%28timeline%29+editor+for+one+target+language+of+a+completed+dub%3A+move+segments%2C+shorten+or+lengthen+them%2C+change+their+speech+rate\u0026amp;theme=f99501abcc8a0848c844752f\u0026amp;signature=422d5f58fb7e88d9c9834e4c5c11e3e37082b5b7907d20007febb29724271026\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Save timeline edits of one language - Dubly API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"One save of the web app\u0026#x27;s visual (timeline) editor for one target language of a completed dub: move segments, shorten or lengthen them, change their speech rate, text or speaker, split them, create new ones and delete them — with the editor\u0026#x27;s own save logic and limits. Engine v1 only (capability supportsTimelineEditor): on any other engine the request returns 400 — correct texts there with PATCH /api/v1/dubs/{id}/segments. All times are in seconds. Every entry of updated carries the segment\u0026#x27;s complete new state; an entry whose values are all as stored is reported as \u0026quot;unchanged\u0026quot; and is neither written nor counted. The changes reach the video with the next POST /api/v1/dubs/{id}/update, which re-voices every segment whose duration, text or speaker changed (pending_revoice in GET /api/v1/dubs/{id}/segments); an empty target_text mutes a segment. A changed source_text sent with the stored (or an empty) target_text clears the translation: the segment is translated from the new source line; sent with a new target_text, that translation is kept. created adds segments, and the answer (200) maps each client_id to the new segment id. A split is the original segment in updated, shortened to its left half (with source_rebase when its source line is divided as well), plus its right half in created with split_from set to the original\u0026#x27;s id; a split_from that is not in updated of the same request returns 400. deleted removes segments: the freed time stays a gap, and GET /api/v1/dubs/{id}/segments no longer lists them. resync_retranslations: true re-translates and re-voices every segment whose source_text changed right away and voices every created segment that has a target_text (resynced_segment_ids); without it nothing is voiced before the next update. Everything is checked before anything is written: a speech_rate outside 0.7–1.3, a duration under 0.8 s (a segment that is already shorter may keep its length), an unknown speaker, an invalid field, an id twice or in updated and deleted, or more than 500 entries return 400; a segment id that does not belong to this dub and target_language, or is deleted, returns 404. While a review is in progress, an update or a lip sync is running for this language, or a changed segment is being re-translated or re-voiced, the request returns 409. Nothing is written in any of these cases. Every segment in updated that actually changes costs one of its 2 API edits — the same counter as PATCH /api/v1/dubs/{id}/segments and POST …/regenerate. A new segment starts with 1 edit used, both halves of a split continue with the original\u0026#x27;s count + 1, and deleting costs nothing. If even one segment would go over the limit, the request returns 403 FORBIDDEN and nothing is written. A save that fails with an internal error while writing can already have written part of the changes, so its edits stay counted — check GET /api/v1/dubs/{id}/segments before you send it again. See Edit limits. No credits are charged.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://dubly-ai-gmb-h.mintlify.site/_mintlify/api/og/v2?division=Dub+editing\u0026amp;title=Save+timeline+edits+of+one+language\u0026amp;description=One+save+of+the+web+app%27s+visual+%28timeline%29+editor+for+one+target+language+of+a+completed+dub%3A+move+segments%2C+shorten+or+lengthen+them%2C+change+their+speech+rate\u0026amp;theme=f99501abcc8a0848c844752f\u0026amp;signature=422d5f58fb7e88d9c9834e4c5c11e3e37082b5b7907d20007febb29724271026\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/dubly-ai-gmb-h/Rdyrasup2lxyg39-/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Dubly API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#7839EE\">\u003clink data-mint-head rel=\"canonical\" href=\"https://dubly-ai-gmb-h.mintlify.app/api-reference/dub-editing/save-dub-timeline\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/dub-editing/save-dub-timeline.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://dubly-ai-gmb-h.mintlify.app/#organization\",\"name\":\"Dubly API\",\"url\":\"https://dubly-ai-gmb-h.mintlify.app\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/dubly-ai-gmb-h/xP1t3V5QJCiqWCjC/logo/light.png?fit=max\u0026auto=format\u0026n=xP1t3V5QJCiqWCjC\u0026q=85\u0026s=d55c6a5c7f0e2e8c371d05df166434bf\"}},{\"@type\":\"WebSite\",\"@id\":\"https://dubly-ai-gmb-h.mintlify.app#website\",\"name\":\"Dubly API\",\"url\":\"https://dubly-ai-gmb-h.mintlify.app\",\"publisher\":{\"@id\":\"https://dubly-ai-gmb-h.mintlify.app/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://dubly-ai-gmb-h.mintlify.app/api-reference/dub-editing/save-dub-timeline#webpage\",\"url\":\"https://dubly-ai-gmb-h.mintlify.app/api-reference/dub-editing/save-dub-timeline\",\"name\":\"Save timeline edits of one language\",\"description\":\"One save of the web app's visual (timeline) editor for one target language of a completed dub: move segments, shorten or lengthen them, change their speech rate, text or speaker, split them, create new ones and delete them — with the editor's own save logic and limits. Engine v1 only (capability supportsTimelineEditor): on any other engine the request returns 400 — correct texts there with PATCH /api/v1/dubs/{id}/segments. All times are in seconds. Every entry of updated carries the segment's complete new state; an entry whose values are all as stored is reported as \\\"unchanged\\\" and is neither written nor counted. The changes reach the video with the next POST /api/v1/dubs/{id}/update, which re-voices every segment whose duration, text or speaker changed (pending_revoice in GET /api/v1/dubs/{id}/segments); an empty target_text mutes a segment. A changed source_text sent with the stored (or an empty) target_text clears the translation: the segment is translated from the new source line; sent with a new target_text, that translation is kept. created adds segments, and the answer (200) maps each client_id to the new segment id. A split is the original segment in updated, shortened to its left half (with source_rebase when its source line is divided as well), plus its right half in created with split_from set to the original's id; a split_from that is not in updated of the same request returns 400. deleted removes segments: the freed time stays a gap, and GET /api/v1/dubs/{id}/segments no longer lists them. resync_retranslations: true re-translates and re-voices every segment whose source_text changed right away and voices every created segment that has a target_text (resynced_segment_ids); without it nothing is voiced before the next update. Everything is checked before anything is written: a speech_rate outside 0.7–1.3, a duration under 0.8 s (a segment that is already shorter may keep its length), an unknown speaker, an invalid field, an id twice or in updated and deleted, or more than 500 entries return 400; a segment id that does not belong to this dub and target_language, or is deleted, returns 404. While a review is in progress, an update or a lip sync is running for this language, or a changed segment is being re-translated or re-voiced, the request returns 409. Nothing is written in any of these cases. Every segment in updated that actually changes costs one of its 2 API edits — the same counter as PATCH /api/v1/dubs/{id}/segments and POST …/regenerate. A new segment starts with 1 edit used, both halves of a split continue with the original's count + 1, and deleting costs nothing. If even one segment would go over the limit, the request returns 403 FORBIDDEN and nothing is written. A save that fails with an internal error while writing can already have written part of the changes, so its edits stay counted — check GET /api/v1/dubs/{id}/segments before you send it again. See Edit limits. No credits are charged.\",\"dateModified\":\"2026-11-25T10:25:38.010Z\",\"isPartOf\":{\"@id\":\"https://dubly-ai-gmb-h.mintlify.app#website\"},\"breadcrumb\":{\"@id\":\"https://dubly-ai-gmb-h.mintlify.app/api-reference/dub-editing/save-dub-timeline#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://dubly-ai-gmb-h.mintlify.app/api-reference/dub-editing/save-dub-timeline#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Dub editing\",\"item\":\"https://dubly-ai-gmb-h.mintlify.app/api-reference/dub-editing/get-dub-segments\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Save timeline edits of one language\",\"item\":\"https://dubly-ai-gmb-h.mintlify.app/api-reference/dub-editing/save-dub-timeline\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://dubly-ai-gmb-h.mintlify.app/api-reference/dub-editing/save-dub-timeline#apireference\",\"headline\":\"Save timeline edits of one language\",\"name\":\"Save timeline edits of one language\",\"description\":\"One save of the web app's visual (timeline) editor for one target language of a completed dub: move segments, shorten or lengthen them, change their speech rate, text or speaker, split them, create new ones and delete them — with the editor's own save logic and limits. Engine v1 only (capability supportsTimelineEditor): on any other engine the request returns 400 — correct texts there with PATCH /api/v1/dubs/{id}/segments. All times are in seconds. Every entry of updated carries the segment's complete new state; an entry whose values are all as stored is reported as \\\"unchanged\\\" and is neither written nor counted. The changes reach the video with the next POST /api/v1/dubs/{id}/update, which re-voices every segment whose duration, text or speaker changed (pending_revoice in GET /api/v1/dubs/{id}/segments); an empty target_text mutes a segment. A changed source_text sent with the stored (or an empty) target_text clears the translation: the segment is translated from the new source line; sent with a new target_text, that translation is kept. created adds segments, and the answer (200) maps each client_id to the new segment id. A split is the original segment in updated, shortened to its left half (with source_rebase when its source line is divided as well), plus its right half in created with split_from set to the original's id; a split_from that is not in updated of the same request returns 400. deleted removes segments: the freed time stays a gap, and GET /api/v1/dubs/{id}/segments no longer lists them. resync_retranslations: true re-translates and re-voices every segment whose source_text changed right away and voices every created segment that has a target_text (resynced_segment_ids); without it nothing is voiced before the next update. Everything is checked before anything is written: a speech_rate outside 0.7–1.3, a duration under 0.8 s (a segment that is already shorter may keep its length), an unknown speaker, an invalid field, an id twice or in updated and deleted, or more than 500 entries return 400; a segment id that does not belong to this dub and target_language, or is deleted, returns 404. While a review is in progress, an update or a lip sync is running for this language, or a changed segment is being re-translated or re-voiced, the request returns 409. Nothing is written in any of these cases. Every segment in updated that actually changes costs one of its 2 API edits — the same counter as PATCH /api/v1/dubs/{id}/segments and POST …/regenerate. A new segment starts with 1 edit used, both halves of a split continue with the original's count + 1, and deleting costs nothing. If even one segment would go over the limit, the request returns 403 FORBIDDEN and nothing is written. A save that fails with an internal error while writing can already have written part of the changes, so its edits stay counted — check GET /api/v1/dubs/{id}/segments before you send it again. See Edit limits. No credits are charged.\",\"url\":\"https://dubly-ai-gmb-h.mintlify.app/api-reference/dub-editing/save-dub-timeline\",\"mainEntityOfPage\":{\"@id\":\"https://dubly-ai-gmb-h.mintlify.app/api-reference/dub-editing/save-dub-timeline#webpage\"},\"dateModified\":\"2026-11-25T10:25:38.010Z\",\"publisher\":{\"@id\":\"https://dubly-ai-gmb-h.mintlify.app/#organization\"},\"isPartOf\":{\"@id\":\"https://dubly-ai-gmb-h.mintlify.app#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Dubly API\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Dubly API\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/dub-editing/save-dub-timeline.md","siteName":"Dubly API","nav":{"global":null,"tabs":[{"tab":"Guides","pages":[{"title":"Guides","href":""}]},{"tab":"API Reference","groups":[{"group":"Create dubs","pages":[{"title":"Create a dub from a YouTube video","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/dubs/youtube","href":"/api-reference/create-dubs/create-dub-youtube"},{"title":"Create a dub from a Google Drive video","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/dubs/google-drive","href":"/api-reference/create-dubs/create-dub-google-drive"},{"title":"Create a dub from a video URL","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/dubs/url","href":"/api-reference/create-dubs/create-dub-url"}]},{"group":"Dubs","pages":[{"title":"Get dub status and result URLs","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/dubs/{id}","href":"/api-reference/dubs/get-dub"},{"title":"Delete a dub permanently","deprecated":null,"version":null,"openapi":"/openapi.json delete /api/v1/dubs/{id}","href":"/api-reference/dubs/delete-dub"},{"title":"Rename a dub or move it to a project","deprecated":null,"version":null,"openapi":"/openapi.json patch /api/v1/dubs/{id}","href":"/api-reference/dubs/patch-dub"},{"title":"List the downloads of one language","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/dubs/{id}/downloads","href":"/api-reference/dubs/get-dub-downloads"},{"title":"Change the volume of the original voice","deprecated":null,"version":null,"openapi":"/openapi.json patch /api/v1/dubs/{id}/audio-settings","href":"/api-reference/dubs/patch-dub-audio-settings"}]},{"group":"Dub editing","pages":[{"title":"List the segments of one language","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/dubs/{id}/segments","href":"/api-reference/dub-editing/get-dub-segments"},{"title":"Correct segments of one language","description":"Corrects source text, translation and/or speaker of up to 500 segments of one target language at once, with the web editor's own save logic. Every entry is checked before anything is written: an unknown, deleted or duplicate segment id, a field the dub's engine does not allow or an unknown speaker returns 400 naming the segment, and nothing is written.\n\nEngine v1 (per segment): a changed target_text or speaker is saved and voiced at the next POST /api/v1/dubs/{id}/update (pending_revoice becomes true); an empty target_text mutes the segment. A changed source_text sent alone is saved and the segment is re-translated and re-voiced in this language right away; sent together with a target_text, both are saved and the given translation is kept. also_retranslate_languages re-translates and re-voices every segment with a changed source_text into those languages too.\n\nEngine v2 (batch): speaker and also_retranslate_languages are not available (400); edits are saved and marked as pending changes, and nothing is re-translated or voiced until POST /api/v1/dubs/{id}/update, whose \"Apply changes\" itself carries corrected source texts over to every language of the dub.\n\nEach entry is reported as \"updated\", \"unchanged\" (all values already as stored: nothing written, nothing counted) or \"failed\" (with error, not counted); \"updated\" with an error means the text was saved but the re-translation failed.\n\nWhile a review is in progress, an update or a lip sync is running for this language (or one in also_retranslate_languages), or a changed segment is being re-translated or re-voiced, the request returns 409 and changes nothing.\n\nEvery segment that actually changes costs one of its 2 API edits. See [Edit limits](/guides/edit-limits). No credits are charged.","deprecated":null,"version":null,"openapi":"/openapi.json patch /api/v1/dubs/{id}/segments","href":"/api-reference/dub-editing/patch-dub-segments"},{"title":"Save timeline edits of one language","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/dubs/{id}/segments/timeline","href":"/api-reference/dub-editing/save-dub-timeline"},{"title":"Re-voice one segment","description":"Re-voices one segment of a completed dub right away with its stored state — \"Regenerate\" in the web app's visual editor. The stored translation is spoken again (mode \"revoice\"). If the translation was cleared because POST /api/v1/dubs/{id}/segments/timeline changed the source text, the segment is first translated from the new source line and then voiced (mode \"retranslate\"); a muted segment stays silent.\n\nThe run is asynchronous: the answer is 202, and GET /api/v1/dubs/{id}/segments shows processing true for the segment until its new voice-over is in place. Engine v1 only (capabilities supportsTimelineEditor and supportsPerSegmentRegenerate): on any other engine the request returns 400.\n\nA segmentId that does not belong to this dub and target_language, or is deleted, returns 404. While the segment is already being re-translated or re-voiced, a review is in progress, or an update or a lip sync is running for this language, the request returns 409 and starts nothing.\n\nEvery accepted regenerate costs one of the segment's 2 API edits — the same counter as PATCH /api/v1/dubs/{id}/segments and POST …/segments/timeline; once they are used up, the next regenerate returns 403 FORBIDDEN and starts nothing — the segment can still be regenerated in the Dubly web app. A regenerate refused with 400, 403, 404 or 409, or one that fails to start with 500, is not counted. See [Edit limits](/guides/edit-limits). No credits are charged.","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/dubs/{id}/segments/{segmentId}/regenerate","href":"/api-reference/dub-editing/regenerate-dub-segment"},{"title":"Get the render state of one language","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/dubs/{id}/update","href":"/api-reference/dub-editing/get-dub-update"},{"title":"Apply pending edits and re-render","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/dubs/{id}/update","href":"/api-reference/dub-editing/start-dub-update"}]},{"group":"Lip sync","pages":[{"title":"Get lip-sync status and result URL","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/dubs/{id}/lipsync","href":"/api-reference/lip-sync/get-lipsync"},{"title":"Start lip-sync for a subdub","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/dubs/{id}/lipsync","href":"/api-reference/lip-sync/start-lipsync"},{"title":"List the lip-sync blocks of one language","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/dubs/{id}/lipsync/segments","href":"/api-reference/lip-sync/get-lipsync-segments"},{"title":"Switch lip sync on or off per block","deprecated":null,"version":null,"openapi":"/openapi.json patch /api/v1/dubs/{id}/lipsync/segments","href":"/api-reference/lip-sync/patch-lipsync-segments"}]},{"group":"Subtitled video","pages":[{"title":"Get the burn-in state of one language","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/dubs/{id}/subtitled-video","href":"/api-reference/subtitled-video/get-subtitled-video"},{"title":"Burn subtitles into the video of one language","deprecated":null,"version":null,"openapi":"/openapi.json post /api/v1/dubs/{id}/subtitled-video","href":"/api-reference/subtitled-video/start-subtitled-video"}]},{"group":"Account","pages":[{"title":"List your projects","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/projects","href":"/api-reference/account/list-projects"},{"title":"List your custom voices","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/custom-voices","href":"/api-reference/account/list-custom-voices"}]}]}]},"basePath":"","title":"Save timeline edits of one language - Dubly API","deploymentId":"dpl_57NA6NKtrcUBhuxv6Tm2hAi21TK4","buildId":"dpl_57NA6NKtrcUBhuxv6Tm2hAi21TK4","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CalkZbx8.js","snippetPresets-DtvvunBK.js","utils-Bn5byECU.js","style-to-object-BY3JEAdk.js","utils-DOTAoFcT.js","v4-DIgz8zy6.js","addUniqueKeysToSchema-CDauU9aU.js","conditional-requirements-CFM0id0Q.js","cloneDeep-k2aHAqp5.js","_Uint8Array-CQuRedKT.js","isObject-FP1Yky1u.js","ApiExamples-CSBS2nDe.js","usePlaygroundInputsStore-BkN7uKke.js","shallow-6IMgYiEa.js","isEqual-DicuCknl.js","CodeSnippets-C268fsRY.js","CodeSnippet-BBA8eWiP.js","getApiPlaygroundDisplay-DMK5GRGS.js","Page-Dz3zehSO.js","api-description-markdown-DwoksVHI.js","DynamicMarkdown-XsrWkK-b.js","SectionHeading-AR_EzDYe.js","MethodPill-CvOL8UTX.js","getPastedJson-BazkMjRw.js","Check2Icon-BL_xILK9.js","axios-CsQoIw0U.js","Markdown-CX8Sr5UZ.js","AssistantPageLink-B3VcLrB0.js","dist-WDJo6xkj.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}