PATCH
/
streaming
/
videos
/
{video_id}
/
subtitles
/
{id}
Change subtitle
curl --request PATCH \
  --url https://api.gcore.com/streaming/videos/{video_id}/subtitles/{id} \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "language": "ltz"
}'
{
  "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."
}

Authorizations

Authorization
string
header
required

API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234$abcdef

Path Parameters

id
integer
required

ID of a subtitle

video_id
integer
required

ID of a video

Body

application/json
name
string

Name of subtitle file

language
string

3-letter language code according to ISO-639-2 (bibliographic code)

vtt
string

Full text of subtitles/captions, with escaped "\n" ("\r") symbol of new line

Response

Successful

name
string

Name of subtitle file

language
string

3-letter language code according to ISO-639-2 (bibliographic code)

vtt
string

Full text of subtitles/captions, with escaped "\n" ("\r") symbol of new line