We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The example at http://guides.dataverse.org/en/4.15/api/native-api.html#add-a-file-to-a-dataset illustrates that jsonData can be uploaded when adding a file:
jsonData
curl -H "X-Dataverse-key:$API_TOKEN" -X POST -F 'file=@data.tsv' -F 'jsonData={"description":"My description.","directoryLabel":"data/subdir1","categories":["Data"], "restrict":"true"}' "https://example.dataverse.edu/api/datasets/:persistentId/add?persistentId=$PERSISTENT_ID"
The jsonData object allows the user to add additional metadata about the file:
It would be great if api.upload_file supported this jsonData object.
api.upload_file
The text was updated successfully, but these errors were encountered:
Here's a real world use case: IQSS/dataverse-sample-data#5
Sorry, something went wrong.
Partly implemented here: AUSSDA@ebdba4d
fix issue: #32, change Datafile upload from CURL to native Pyhon; add…
7142110
… some SWORD API function
skasberger
No branches or pull requests
The example at http://guides.dataverse.org/en/4.15/api/native-api.html#add-a-file-to-a-dataset illustrates that
jsonData
can be uploaded when adding a file:curl -H "X-Dataverse-key:$API_TOKEN" -X POST -F 'file=@data.tsv' -F 'jsonData={"description":"My description.","directoryLabel":"data/subdir1","categories":["Data"], "restrict":"true"}' "https://example.dataverse.edu/api/datasets/:persistentId/add?persistentId=$PERSISTENT_ID"
The
jsonData
object allows the user to add additional metadata about the file:It would be great if
api.upload_file
supported thisjsonData
object.The text was updated successfully, but these errors were encountered: