Hello,
I need to restrict access to a file that belongs to an older published version of a dataset.
The file in the version 1.0 was later replaced in a newer version 2.0, so the old file has a different File ID from the current one. After that, the new file was restricted in a version 2.1, but we realised the file in version 1.0 was still open.
We tried restricting the old file in version 1.0 through the Native API:
curl -H "X-Dataverse-key:$API_TOKEN" \ -X PUT \ -d true \ "$SERVER_URL/api/files/$ID/restrict"The API returns "status":"OK" and confirms that the file was restricted. However, the file in the older published version still appears to be publicly downloadable.
Is it possible to restrict files that have been replaced or deleted in older versions of a dataset.
Thanks in advanced.
--
You received this message because you are subscribed to the Google Groups "Dataverse Users Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dataverse-commu...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/dataverse-community/1986a299-8199-4629-a828-42a76355853en%40googlegroups.com.