Implementation Step 2(b):
Commence dataset job
Once the input files are uploaded, commence the dataset generation job using Data API's SET /jobs/reports/datasets endpoint. This call validates the provided report configuration, input files and commences the dataset aggregation processing. The request object contains the dataset_type
and dataset_id
from step 1.
Sample request
{
"dataset_type": "activity-summary-by-group",
"dataset_id": "e63de7cf-8a11-4b87-9a98-aba1af4e5340"
}
Sample response
{
"meta": {
"status": true,
"timestamp": 1474336936
},
"data": {
"job_reference": "402ead85-5a27-4d40-b68b-7b1e77924ed4",
"dataset_type": "activity-summary-by-group",
"dataset_id": "e63de7cf-8a11-4b87-9a98-aba1af4e5340"
}
}