/video/v1/assets/{id}/tracks
POST
/video/v1/assets/{id}/tracks
const url = 'https://example.com/video/v1/assets/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/tracks';const options = { method: 'POST', headers: {Authorization: 'Basic <credentials>', 'Content-Type': 'application/json'}, body: '{"language_code":"example","name":"example","closed_captions":true,"passthrough":"example","url":"example","type":"text","text_type":"subtitles"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/video/v1/assets/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/tracks \ --header 'Authorization: Basic <credentials>' \ --header 'Content-Type: application/json' \ --data '{ "language_code": "example", "name": "example", "closed_captions": true, "passthrough": "example", "url": "example", "type": "text", "text_type": "subtitles" }'Authorizations
Sección titulada «Authorizations»Parameters
Sección titulada «Parameters»Path Parameters
Sección titulada «Path Parameters»id
required
string format: uuid
Request Bodyrequired
Sección titulada «Request Bodyrequired»Responses
Sección titulada «Responses»Default Response