I have deployed some unmerged, pre-release code having to do with new APIs for adding and replacing files to
https://dev1.dataverse.org and the Dataverse development team is interested in any feedback API users may have.
The plan is to ship these new APIs in the next release of Dataverse (4.6.1). From a issue tracking perspective, we're using
https://github.com/IQSS/dataverse/issues/1612 as well as this email thread to collect feedback.
Being able to add a file via API has been supported via Dataverse's SWORD API for a long time. With the new "native add" capability, you can set descriptions of files (which addresses
https://github.com/IQSS/dataverse/issues/723 ) and other metadata. There's also the advantage of using one API, Dataverse's native API, for all operations instead of needing to switch over to SWORD to add files.
I hope API users like the new "add" and "replace" APIs. Again, feedback is very welcome! Questions are welcome!