Skip to content

Write prereserved DOIs into files before depositing them to Zenodo #131

@zyzzyxdonta

Description

@zyzzyxdonta

When metadata is uploaded to Zenodo, we prereserve a DOI. It might be necessary to use this DOI to update files (CITATION.CFF, codemeta.json, README.md, ...) before uploading them. The deposit resource returned by the API after metadata was posted to the deposit_url has a metadata field that can be used for this.

deposit["metadata"] contains a prereserve_doi field which looks like this: {'doi': '10.5072/zenodo.1234567', 'recid': 1234567}. The recid can be used to construct the URL to the record when published: f"https://sandbox.zenodo.org/record/{recid}".

Metadata

Metadata

Assignees

No one assigned

    Labels

    4️ prepare/depositThe preparation/deposition step in the workflow

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions