Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import data to dataverse #49

Closed
Niousha-Dehestani opened this issue Jun 17, 2022 · 2 comments
Closed

Import data to dataverse #49

Niousha-Dehestani opened this issue Jun 17, 2022 · 2 comments

Comments

@Niousha-Dehestani
Copy link

I used this script to import data to dataverse:

export API_TOKEN= **********

export SERVER_URL=https://demo.dataverse.org

export DATAVERSE_ID=root

export PERSISTENT_IDENTIFIER=doi.org/******

curl -H X-Dataverse-key:$API_TOKEN -X POST $SERVER_URL/api/dataverses/$DATAVERSE_ID/datasets/:import?pid=$PERSISTENT_IDENTIFIER&release=yes --upload-file dataset.json

@bpoldrack
Copy link
Member

Just for the record: If I got that right, then dataverse instances can be set up to provide/generate a DOI / "persistent identifier" from their end. hence, I am not sure to what extend it would generalize to provide one from the user's end.
Anyone experience with that (on real world instances, I mean)?

@mih
Copy link
Member

mih commented Jun 18, 2022

We are now able to upload via datalad. Thx!

@mih mih closed this as completed Jun 18, 2022
mih added a commit to mih/datalad-dataverse that referenced this issue Feb 28, 2023
Templates for using datalad/release-action
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants