Version: 4.18.1
Hello everybody,
After @youssefOuahalou brought up an error, @pdurbin found out that quotation marks are missing in the curl commands in this section of the API Guide. Otherwise, bash cannot parse the URLs properly (and the ampersand (&) in the first of the two paths confuses it).
It should be:
curl -H "X-Dataverse-key: [admin token]" -X POST "http://[dataverse URL]/datasets/:import?pid=[digital object identifier]&release=[yes or no]" --upload-file "[folder path]"