Subtitles
Change subtitle
Method to update subtitle of a video.
You can update all or only some of fields you need.
If you want to replace the text of subtitles (i.e. found a typo in the text, or the timing in the video changed), then:
- download it using GET method,
- change it in an external editor,
- and update it using this PATCH method.
Just like videos, subtitles are cached, so it takes time to update the data. See POST method for details.
patch/streaming/videos/{video_id}/subtitles/{id}
Path parameters
idinteger required
ID of a subtitle
video_idinteger required
ID of a video
Request body
Example request
{
"language": "ltz"
}Response
Successful
Example response
{
"name": "German (AI-generated)",
"language": "ltz",
"vtt": "WEBVTT\n\n1\n00:00:07.154 --> 00:00:12.736\nWir haben 100 Millionen registrierte Benutzer oder aktive Benutzer, die mindestens einmal pro Woche spielen.\n\n2\n00:00:13.236 --> 00:00:20.198\nWir haben vielleicht 80 oder 100.000, die auf einem bestimmten Cluster spielen."
}