Edit captions

PATCH {{base_url}}/media/{{media-id}}

You can retrieve the media_id of content by webhook, API call, or right-clicking the content, copying the video address, and finding the media_id (after /transcoded/ and before /video.mp4 in the URL).

Request Body

{"caption_data"=>"WEBVTT\n\nkey-0\n00:00:00.700 --> 00:00:02.000\nHey, this is Maeve from Acme\n\nkey-1\n00:00:02.000 --> 00:00:02.800\nSolutions.\n\nkey-2\n00:00:02.800 --> 00:00:04.200\nWe would really appreciate your feedback\n\nkey-3\n00:00:04.200 --> 00:00:05.000\non our service.\n\nkey-4\n00:00:05.500 --> 00:00:06.600\nSo would you mind telling us\n\nkey-5\n00:00:06.600 --> 00:00:07.700\nHow likely you are to recommend\n\nkey-6\n00:00:07.700 --> 00:00:08.900\nus to a friend or colleague?\n"}

HEADERS

KeyDatatypeRequiredDescription
Authorizationstring
organization-idstring
Content-Typestring

RESPONSES

status: OK

{"caption_data":"WEBVTT\n\nkey-0\n00:00:00.700 --\u003e 00:00:02.000\nHey, this is Maeve from Acme\n\nkey-1\n00:00:02.000 --\u003e 00:00:02.800\nSolutions.\n\nkey-2\n00:00:02.800 --\u003e 00:00:04.200\nWe would really appreciate your feedback\n\nkey-3\n00:00:04.200 --\u003e 00:00:05.000\non our service.\n\nkey-4\n00:00:05.500 --\u003e 00:00:06.600\nSo would you mind telling us\n\nkey-5\n00:00:06.600 --\u003e 00:00:07.700\nHow likely you are to recommend\n\nkey-6\n00:00:07.700 --\u003e 00:00:08.900\nus to a friend or colleague?","gif":"https://media.videoask.com/transcoded/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/thumbnails/preview.gif","media_id":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","organization_id":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","thumbnail":"https://media.videoask.com/transcoded/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/thumbnails/image.0000002.jpg","transcode_status":"completed","transcribe_status":"completed","transcription":"Hey, this is Lucy from Acme Solutions. We would really appreciate your feedback on our service. So would you mind telling us How likely you are to recommend us to a friend or colleague?","transcription_data":[{"confidence":0.89451057,"transcript":"Hey, this is Lucy from Acme Solutions. We would really appreciate your feedback on our service. So would you mind telling us How likely you are to recommend us to a friend or colleague?","words":[{"word":"Hey,","start_time":0.7,"end_time":1},{"word":"this","start_time":1,"end_time":1.2},{"word":"is","start_time":1.2,"end_time":1.3},{"word":"Lucy","start_time":1.3,"end_time":1.6},{"word":"from","start_time":1.6,"end_time":1.7},{"word":"Acme","start_time":1.7,"end_time":2},{"word":"Solutions.","start_time":2,"end_time":2.8},{"word":"We","start_time":2.8,"end_time":2.9},{"word":"would","start_time":2.9,"end_time":3},{"word":"really","start_time":3,"end_time":3.3},{"word":"appreciate","start_time":3.3,"end_time":3.7},{"word":"your","start_time":3.7,"end_time":3.8},{"word":"feedback","start_time":3.8,"end_time":4.2},{"word":"on","start_time":4.2,"end_time":4.3},{"word":"our","start_time":4.3,"end_time":4.4},{"word":"service.","start_time":4.4,"end_time":5},{"word":"So","start_time":5.5,"end_time":5.7},{"word":"would","start_time":5.7,"end_time":5.8},{"word":"you","start_time":5.8,"end_time":5.9},{"word":"mind","start_time":5.9,"end_time":6.1},{"word":"telling","start_time":6.1,"end_time":6.4},{"word":"us","start_time":6.4,"end_time":6.6},{"word":"How","start_time":6.6,"end_time":6.7},{"word":"likely","start_time":6.7,"end_time":7},{"word":"you","start_time":7,"end_time":7.1},{"word":"are","start_time":7.1,"end_time":7.3},{"word":"to","start_time":7.3,"end_time":7.3},{"word":"recommend","start_time":7.3,"end_time":7.7},{"word":"us","start_time":7.7,"end_time":7.9},{"word":"to","start_time":7.9,"end_time":8.1},{"word":"a","start_time":8.1,"end_time":8.1},{"word":"friend","start_time":8.1,"end_time":8.3},{"word":"or","start_time":8.3,"end_time":8.4},{"word":"colleague?","start_time":8.4,"end_time":8.9}]}],"url":"https://media.videoask.com/transcoded/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/video.mp4?token=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","created_at":"2021-09-24T14:47:33.062973Z"}