Record a download event for an eprint
Input
Encoding
application/jsonuri
stringat-uri
Required
AT-URI of the eprint being downloaded
viewerDid
stringdid
Optional
DID of the downloader (optional for anonymous downloads)
Output
Encoding
application/jsonsuccess
boolean
Required
Whether the download was recorded
Errors
InvalidRequest
NotFound
Try It
Requests are sent directly from your browser. Some servers may block requests due to CORS.
View raw schema
{
"type": "procedure",
"input": {
"schema": {
"type": "object",
"required": [
"uri"
],
"properties": {
"uri": {
"type": "string",
"format": "at-uri",
"description": "AT-URI of the eprint being downloaded"
},
"viewerDid": {
"type": "string",
"format": "did",
"description": "DID of the downloader (optional for anonymous downloads)"
}
}
},
"encoding": "application/json"
},
"errors": [
{
"name": "InvalidRequest"
},
{
"name": "NotFound"
}
],
"output": {
"schema": {
"type": "object",
"required": [
"success"
],
"properties": {
"success": {
"type": "boolean",
"description": "Whether the download was recorded"
}
}
},
"encoding": "application/json"
},
"description": "Record a download event for an eprint"
}