Show examples in:
List upload tracks

Returns

Returns an array of upload_track resource objects.

Examples

Example Basic example
import { buildClient } from '@datocms/cma-client-node';
async function run() {
const client = buildClient({ apiToken: '<YOUR_API_TOKEN>' });
const uploadId = 'xBe7u01029ipxBLQhYzZCJ1cke01zCkuUsgnYtH0017nNzbpv2YcsoMDmw';
const uploadTracks = await client.uploadTracks.list(uploadId);
uploadTracks.forEach((uploadTrack) => {
console.log(uploadTrack);
});
}
run();