Either an URL to download, or the ID of an upload request
The type of track (audio or subtitles)
A valid BCP 47 specification compliant language code
The human-readable name of the track
Indicates if the track provides subtitles for the Deaf or Hard-of-hearing (SDH)
import { buildClient } from '@datocms/cma-client-node';async function run() {const client = buildClient({ apiToken: '<YOUR_API_TOKEN>' });const uploadId = 'xBe7u01029ipxBLQhYzZCJ1cke01zCkuUsgnYtH0017nNzbpv2YcsoMDmw';const uploadTrack = await client.uploadTracks.create(uploadId, {url_or_upload_request_id: '/7/1455102967-image.png',type: 'subtitles',language_code: 'it-IT'});console.log(uploadTrack);}run();