Sorry, no results found for "".
A valid BCP 47 specification compliant language code
"it-IT"
The human-readable name of the track
"Italiano"
Returns a resource object of type upload_track
1import { buildClient } from "@datocms/cma-client-node";2 3async function run() {4 const client = buildClient({ apiToken: process.env.DATOCMS_API_TOKEN });5 6 const uploadId = "xBe7u01029ipxBLQhYzZCJ1cke01zCkuUsgnYtH0017nNzbpv2YcsoMDmw";7 8 const uploadTrack = await client.uploadTracks.generateSubtitles(uploadId, {9 language_code: "it-IT",10 });11 12 // Check the 'Returned output' tab for the result ☝️13 console.log(uploadTrack);14}15 16run();
1{2 id: "xBe7u01029ipxBLQhYzZCJ1cke01zCkuUsgnYtH0017nNzbpv2YcsoMDmw",3 type: "subtitles",4 name: "Italiano",5 language_code: "it-IT",6 closed_captions: false,7 status: "ready",8 error: null,9 upload: { type: "upload", id: "q0VNpiNQSkG6z0lif_O1zg" },10}