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: src/datasets/domain/useCases/UpdateDataset.ts
+12-2Lines changed: 12 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -18,14 +18,24 @@ export class UpdateDataset extends DatasetWriteUseCase<void> {
18
18
*
19
19
* @param {number | string} [datasetId] - The dataset identifier, which can be a string (for persistent identifiers), or a number (for numeric identifiers).
20
20
* @param {DatasetDTO} [updatedDataset] - DatasetDTO object including the updated dataset metadata field values for each metadata block.
21
+
* @param {number} [internalVersionNumber] - The internal version number of the dataset. If another user updates the dataset version metadata before you send the update request, data inconsistencies may occur. To prevent this, you can use the optional internalVersionNumber parameter. This parameter must include the internal version number corresponding to the dataset version being updated. Note that internal version numbers increase sequentially with each version update.
21
22
* @returns {Promise<void>} - This method does not return anything upon successful completion.
22
23
* @throws {ResourceValidationError} - If there are validation errors related to the provided information.
23
24
* @throws {ReadError} - If there are errors while reading data.
24
25
* @throws {WriteError} - If there are errors while writing data.
0 commit comments