Start an augmentation run (or estimate cost)
client.datasets.run(stringdatasetID, DatasetRunParams { brand_controls, column_mapping, estimate, 2 more } body, RequestOptionsoptions?): DatasetRunResponse { estimate, estimatedCreditsConsumed, estimatedMinutes, run_id }
POST/api/v1/datasets/{dataset_id}/run
Validates column mapping and recipe configuration, reserves credits, and starts the augmentation pipeline. Set estimate=true to validate and get a cost quote without starting a run.
Start an augmentation run (or estimate cost)
import Adaption from 'adaption';
const client = new Adaption({
apiKey: process.env['ADAPTION_API_KEY'], // This is the default and can be omitted
});
const response = await client.datasets.run('dataset_id');
console.log(response.run_id);{
"estimate": true,
"estimatedCreditsConsumed": 0,
"estimatedMinutes": 0,
"run_id": "dataset-550e8400-e29b-41d4-a716-446655440000-1712234567890"
}Returns Examples
{
"estimate": true,
"estimatedCreditsConsumed": 0,
"estimatedMinutes": 0,
"run_id": "dataset-550e8400-e29b-41d4-a716-446655440000-1712234567890"
}