URL of draft Zenodo upload, something like https://zenodo.org/api/deposit/depositions/1234567
The Zenodo personal access token with the deposit:actions
and deposit:write
scopes.
When true then an added file is checksum matched with file already in draft. If it matches an error is thrown.
Add file to draft
For example to add a file called ./somefile
.
await draft.add_file('./somefile');
Path to file
Discard the draft.
Any other methods on the object will fail after discarding.
For example
await draft.discard();
Get copy of the metadata.
metadata object of draft
Publish draft Zenodo upload
For example
await draft.publish();
Overwrite complete metadata of draft
For example
const metadata = await draft.get_metadata();
metadata.title = 'My new title';
await draft.set_metadata(metadata);
New metadata object for draft
Set version of draft
For example
await draft.set_version('1.2.3');
Update draft with given version
Date of publication. Defaults to today.
Generated using TypeDoc
Manage draft entry on Zenodo
Example of managing a already created Zenodo draft.
A draft can be created on the Zenodo website by creating a new version without publishing it or with the create_draft function.