Hey @Philip Durbin, whats the smarted way to find out via API if a dataset is "Submitted for Review”? Sadly, its not one of the VersionStates .
Do I need to replicate this method within my client and use the lock API to obtain the needed information?
Hmm, here I look for a notification called SUBMITTEDDS: https://github.com/IQSS/dataverse/blob/v6.2/src/test/java/edu/harvard/iq/dataverse/api/InReviewWorkflowIT.java#L139C62-L139C73
Ha, you probably don't to try an edit and look for this error (further down): Couldn't update dataset edu.harvard.iq.dataverse.engine.command.exception.IllegalCommandException: Dataset cannot be edited due to In Review dataset lock
Yeah, you might be on the right track with locks. Check for an "in review" lock?
"Currently implemented lock types are Ingest, Workflow, InReview, DcmUpload, finalizePublication, EditInProgress and FileValidationFailed." -- https://guides.dataverse.org/en/6.2/api/native-api.html#dataset-locks
Yeah, I'd check for a lock ^^
Yup, there is one. Sadly this needs another API request to obtain the information. I hoped for some hidden feature to get this information with the inital getDataset one...
Hmm, I can't think of one off the top of my head.
A dataset can only be in one state. I guess it's in draft state when it's in review.
Johannes D has marked this topic as resolved.
Last updated: Nov 01 2025 at 14:11 UTC