pub.chive.metrics.recordDownload

Record a download event for an eprint

Repository @lexicons.governance.chive.pub did:plc:egjghlwgts2hlcer2txilxeh not from the namespace authority
Details · procedure
Kindprocedure
Authoritymetrics.chive.pub
Indexed
cid bafyreieo67xztfs266n4orfkwclw74nurlyu4lvapn5gsomtzurzpubhf4

Checks

Valid Lint pass
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Record a download event for an eprint",
      "errors": [
        {
          "name": "InvalidRequest"
        },
        {
          "name": "NotFound"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "uri": {
              "description": "AT-URI of the eprint being downloaded",
              "format": "at-uri",
              "type": "string"
            },
            "viewerDid": {
              "description": "DID of the downloader (optional for anonymous downloads)",
              "format": "did",
              "type": "string"
            }
          },
          "required": [
            "uri"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "success": {
              "description": "Whether the download was recorded",
              "type": "boolean"
            }
          },
          "required": [
            "success"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "pub.chive.metrics.recordDownload",
  "lexicon": 1,
  "revision": 1
}