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}".
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 aprereserve_doi
field which looks like this:{'doi': '10.5072/zenodo.1234567', 'recid': 1234567}
. Therecid
can be used to construct the URL to the record when published:f"https://sandbox.zenodo.org/record/{recid}"
.