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
The `fileId` parameter can be a string, for persistent identifiers, or a number, for numeric identifiers.
1437
+
If restrict is false then enableAccessRequest and termsOfAccess are ignored
1438
+
If restrict is true and enableAccessRequest is false then termsOfAccess is required.
1439
+
The enableAccessRequest and termsOfAccess are applied to the Draft version of the Dataset and affect all of the restricted files in said Draft version.
@@ -9,10 +10,11 @@ export class RestrictFile implements UseCase<void> {
9
10
* More detailed information about the file restriction behavior can be found in https://guides.dataverse.org/en/latest/api/native-api.html#restrict-files
10
11
*
11
12
* @param {number | string} [fileId] - The File identifier, which can be a string (for persistent identifiers), or a number (for numeric identifiers).
12
-
* @param {boolean} [restrict] - A boolean value that indicates whether the file should be restricted or unrestricted.
13
+
* @param {RestrictFileDTO} [restrictFileDTO] - The DTO containing the file restriction information.
13
14
* @returns {Promise<void>} -This method does not return anything upon successful completion.
0 commit comments