You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/useCases.md
+62-3Lines changed: 62 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,7 @@ The different use cases currently available in the package are classified below,
23
23
-[List All Datasets](#list-all-datasets)
24
24
-[Datasets write use cases](#datasets-write-use-cases)
25
25
-[Create a Dataset](#create-a-dataset)
26
+
-[Update a Dataset](#update-a-dataset)
26
27
-[Publish a Dataset](#publish-a-dataset)
27
28
-[Files](#Files)
28
29
-[Files read use cases](#files-read-use-cases)
@@ -358,6 +359,66 @@ The above example creates the new dataset in the `root` collection since no coll
358
359
359
360
The use case returns a [CreatedDatasetIdentifiers](../src/datasets/domain/models/CreatedDatasetIdentifiers.ts) object, which includes the persistent and numeric identifiers of the created dataset.
360
361
362
+
#### Update a Dataset
363
+
364
+
Updates an existing Dataset, given a [DatasetDTO](../src/datasets/domain/dtos/DatasetDTO.ts) with the updated information.
365
+
366
+
If a draft of the dataset already exists, the metadata of that draft is overwritten; otherwise, a new draft is created with the updated metadata.
367
+
368
+
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.
0 commit comments