Create an asset track

POST {{baseUrl}}/video/v1/assets/:ASSET_ID/tracks

Adds an asset track (for example, subtitles, or an alternate audio track) to an asset.

Request Body

{"url"=>"https://example.com/myVideo_en.srt", "type"=>"text", "text_type"=>"subtitles", "language_code"=>"en-US", "name"=>"English", "closed_captions"=>true, "passthrough"=>"English"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: Created

{"data":{"type":"text","text_type":"subtitles","status":"preparing","passthrough":"English","name":"English","language_code":"en-US","id":"xBe7u01029ipxBLQhYzZCJ1cke01zCkuUsgnYtH0017nNzbpv2YcsoMDmw","closed_captions":true}}