Hey @Philip Durbin @Jan Range @Guillermo Portas I wasn't sure today during CT meeting - can we already set the storage for a collection via API? And what was that about only being able to use a label for that?
Yes, it's already possible: https://guides.dataverse.org/en/6.0/admin/dataverses-datasets.html#configure-a-dataverse-collection-to-store-all-new-files-in-a-specific-file-store
I found those docs a bit confusing, though. So in #10044 I'm adding a note at the end:
To direct new files (uploaded when datasets are created or edited) for all datasets in a given Dataverse collection, the store can be specified via the API as shown below, or by editing the 'General Information' for a Dataverse collection on the Dataverse collection page. Only accessible to superusers. ::
curl -H "X-Dataverse-key: $API_TOKEN" -X PUT -d $storageDriverLabel http://$SERVER/api/admin/dataverse/$dataverse-alias/storageDriver
(Note that for dataverse.files.store1.label=MyLabel, you should pass MyLabel.)
Last updated: Nov 01 2025 at 14:11 UTC