Is API DOI deposit (POST /api/pubs/{pubId}/doi) supported? #3474
Replies: 1 comment
-
|
Hi! 1. APISorry, the API docs are kind of misleading on that front, that API is only for when you have registered a custom Datacite DOI prefix with us. The correct API is You are free to try it out, the body expects something like {
"target": "pub",
"pubId": "d20da423-90f2-42c9-9852-e893f4c319c0",
"communityId":"0417b0c0-cd38-48bd-8a84-b0b95da98813",
"contentVersion":"vor", // optional
"reviewType":"editor-report", // only for Pubs that have an `isReview` relation
"reviewRecommendation":"reject" // only for Pubs that have an `isReview` relation
}2. Issues with current DOIsUnfortunately we recently discovered that it's possible that Review-type deposits have silently failed in the past. Eg see https://unjournal.pubpub.org/dash/pub/evalsumlimitedmeadprod/settings/doi
This should now show a warning that it will not deposit correctly, and you should also see that 10.21428/d28e8e57.6be96b7b does not resolve properly. We are sorry for this, but are not able to provide (free) support for these cases at the moment. An upcoming PR (#3475) will provide some better error messages both in the UI and through the API with instructions on how to fix them. Unfortunately a very tricky situation can occur in cases like the above, as both the "parent" review Pub and the "child" supplement review pubs will have non-existing DOIs. The only way to currently fix this situation is as follows:
We are very sorry that this is such a hassle! 3.Thanks for disclosing that you used an LLM to write the message! |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
Hi! We're using the PubPub API to automate some workflows for The Unjournal community.
We can deposit DOIs successfully through the web UI, but when calling the API endpoint:
POST /api/pubs/{pubId}/doiWe get:
{"error":"Cannot destructure property 'username' of 'depositTarget' as it is undefined."}Questions:
We have ~78 pubs needing DOI re-deposit and would love to automate this rather than clicking through the UI individually.
Thanks!
(Note: Claude helped compose this message, but I've checked that it makes sense - David)
Beta Was this translation helpful? Give feedback.
All reactions