Request Batch
client.assets.download.requestBatch(DownloadRequestBatchParams { options, query } body, RequestOptionsoptions?): DownloadRequestBatchResponse { jobId }
POST/assets/download
Request Batch
import Scenario from '@scenario-labs/sdk';
const client = new Scenario({
apiKey: process.env['SCENARIO_SDK_API_KEY'], // This is the default and can be omitted
apiSecret: process.env['SCENARIO_SDK_API_SECRET'], // This is the default and can be omitted
});
const response = await client.assets.download.requestBatch({
options: { fileNameTemplate: 'fileNameTemplate' },
query: {
assetIds: ['string'],
inferenceIds: ['string'],
modelIds: ['string'],
},
});
console.log(response.jobId);{
"jobId": "jobId"
}Returns Examples
{
"jobId": "jobId"
}