Skip to main content
POST

Authorizations

Authorization
string
header
required

An API token from Settings → API in the Dubly web app, sent as Authorization: Bearer <token>.

Path Parameters

id
string<uuid>
required

The dub ID (path parameter). The dub must have finished processing (status "Dubbed"); otherwise the request returns 400.

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})$

Body

application/json
target_language
enum<string>
required

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.

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.

deleted
string<uuid>[]

Ids of segments to delete. The freed time stays a gap. Deleting costs no API edit.

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)$
resync_retranslations
boolean

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