Skip to content

Commit 99408e9

Browse files
committed
Changed: updated docs
1 parent ccbac67 commit 99408e9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/useCases.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ The `DatasetPreviewSubset`returned instance contains a property called `totalDat
299299

300300
#### Create a Dataset
301301

302-
Creates a new Dataset in a collection, given a [NewDatasetDTO](../src/datasets/domain/dtos/NewDatasetDTO.ts) object and an optional collection identifier, which defaults to `root`.
302+
Creates a new Dataset in a collection, given a [DatasetDTO](../src/datasets/domain/dtos/DatasetDTO.ts) object and an optional collection identifier, which defaults to `root`.
303303

304304
This use case validates the submitted fields of each metadata block and can return errors of type [ResourceValidationError](../src/core/domain/useCases/validators/errors/ResourceValidationError.ts), which include sufficient information to determine which field value is invalid and why.
305305

@@ -310,7 +310,7 @@ import { createDataset } from '@iqss/dataverse-client-javascript'
310310

311311
/* ... */
312312

313-
const newDatasetDTO: NewDatasetDTO = {
313+
const datasetDTO: DatasetDTO = {
314314
metadataBlockValues: [
315315
{
316316
name: 'citation',
@@ -345,7 +345,7 @@ const newDatasetDTO: NewDatasetDTO = {
345345
]
346346
}
347347

348-
createDataset.execute(newDatasetDTO).then((newDatasetIds: CreatedDatasetIdentifiers) => {
348+
createDataset.execute(datasetDTO).then((newDatasetIds: CreatedDatasetIdentifiers) => {
349349
/* ... */
350350
})
351351

0 commit comments

Comments
 (0)