const datasets = [
{ externalId: 'sensitiveData' },
{ writeProtected: true }
];
const createdDatasets = await client.datasets.create(datasets);
const dataSets = await client.datasets.list({ filter: { createdTime: { min: new Date('1 jan 2018'), max: new Date('1 jan 2019') }}});
const dataSets = await client.datasets.retrieve([{id: 123}, {externalId: 'abc'}]);
const dataSets = await client.datasets.update([{id: 123, update: {description: {set: 'New description'}}}]);
Aggregate datasets
const aggregates = await client.datasets.aggregate({ filter: { writeProtected: true } }); console.log('Number of write protected datasets: ', aggregates[0].count)