Hi all,
I’m passing along a question from one of our developers who is trying to implement this API for our repository. He’s getting an error indicating that the title is blank, but it isn’t. If any of you have any experience with this, we’d love some help. We’ve sent an email to DataCite but our work cycle ends tomorrow so we are trying to wrap this up quickly.
Thanks!
Amy
I made a request like this to the JSON API:
{
“data”: {
“attributes”: {
“event”: “publish”,
“descriptions”: [{
“description”: “abs”,
“descriptionType”: “Abstract”
}],
“alternateIdentifiers”: [{
“alternateIdentifier”: “https://sul-purl-stage.stanford.edu/gy295fb4889”,
“alternateIdentifierType”: “PURL”
}],
“dates”: ,
“subjects”: [{
“subjectScheme”: “fast”,
“schemeURI”: “OCLC FAST Linked Data”,
“subject”: “Keyword searching”,
“valueURI”: “http://id.worldcat.org/fast/987037/”
}],
“titles”: [{
“title”: “Test DOI #10”
}],
“rightsList”: [{
“rights”: “Creative Commons Legal Code”
}],
“types”: {
“resourceTypeGeneral”: “Text”,
“resourceType”: “Text”
},
“publicationYear”: “2021”,
“publisher”: “Stanford Digital Repository”,
“creators”: [{
“name”: “Coyne, Justin”,
“givenName”: “Justin”,
“familyName”: “Coyne”,
“nameType”: “Personal”
}]
}
}
}
And I got a response like this:
{“errors”:[{“source”:“url”,“uid”:“10.80343/gy295fb4889”,“title”:“Can’t be blank”}]}
This error doesn’t make sense to me since we’ve provided titles as indicated in the documentation here: Creating DOIs with the REST API