Skip to content

submitRecordToCommunities #158

Answered by eblondel
ThierryO asked this question in Q&A
May 24, 2024 · 1 comments · 7 replies
Discussion options

You must be logged in to vote

oh sorry, I understood the issue:

  • the deleteReviewRequest only applies to delete the selection of a community for a record; I can admit it is confusing but that's how the API seems to be designed.
  • Once you had submitted the record for review, you can't delete the selection of the community (what is done with deleteReviewRequest), but rather you have to cancel the review. For this you need to retrieve the review request

Full example:

my_community = "openfair"
record_id = 99999999
record = ZENODO$getDepositionById(record_id)
ZENODO$createReviewRequest(record, my_community) #should be ok
ZENODO$submitRecordForReview(record$id) #should be ok
ZENODO$deleteReviewRequest(record) #can't work be…

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@ThierryO
Comment options

@eblondel
Comment options

@ThierryO
Comment options

@eblondel
Comment options

Answer selected by ThierryO
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants