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.
1403
+
If restrict is false then enableAccessRequest and termsOfAccess are ignored
1404
+
If restrict is true and enableAccessRequest is false then termsOfAccess is required.
1405
+
The enableAccessRequest and termsOfAccess are applied to the Draft version of the Dataset and affect all of the restricted files in said Draft version.
* 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.
'There was an error when writing the resource. Reason was: [409] Terms of Use and Access are invalid. You must enable request access or add terms of access in datasets with restricted files.'
0 commit comments