zenodo / zenodo-rdm

Zenodo, powered by InvenioRDM
https://zenodo.org
GNU General Public License v2.0
50 stars 26 forks source link

"latest_draft" link does not point to latest draft #858

Open prs513rosewood opened 4 months ago

prs513rosewood commented 4 months ago

After creating a new version of a record (curl -X POST https://zenodo.org/api/deposit/depositions/8278646/actions/newversion), the ['links']['latest_draft'] of the latest record (curl -X GET https://zenodo.org/api/deposit/depositions/8278646) does not point to the new draft version (it points to the current latest published record). The documentation mentions that the latest_draft link of the POST response body points to that draft version, but if the draft was created manually I can't seem to find a way to access the latest draft through the API (I think it was possible some time ago?). Am I missing something, or is this the intended behavior?