Create a draft from an existing Zenodo upload
For example to create a draft from https://zenodo.org/record/1234567.
import { create_draft } from '@iomeg/zenodo-upload'; const deposition_id = 1234567; const access_token = 'sometoken'; const draft = await create_draft(deposition_id, access_token); draft.discard();
{Error} When communication with Zenodo API fails
The deposition identifier of a Zenodo upload
The Zenodo personal access token with the deposit:actions and deposit:write scopes.
deposit:actions
deposit:write
Generated using TypeDoc
Create a draft from an existing Zenodo upload
For example to create a draft from https://zenodo.org/record/1234567.
{Error} When communication with Zenodo API fails