buzz.bookhive.linkPersonalBook

Link a personal library book to a BookHive catalog entry. Overwrites title, authors, and cover from the catalog.

Repository @bookhive.buzz did:plc:enu2j5xjlqsjaylv3du4myh4 namespace authority
Details · procedure
Kindprocedure
Authoritybookhive.buzz
Commit rev3n2mntottf22e
Indexed
cid bafyreif72q57kpbiyt5hudco2aynnc4i7pr32ukg3wuh6oxjestg7mnfly

Checks

Valid
  • unlimited-string defs.main.input.schema.properties.contentHashNo maxLength, maxGraphemes or format limits this string.
  • unlimited-string defs.main.input.schema.properties.hiveIdNo maxLength, maxGraphemes or format limits this string.
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Link a personal library book to a BookHive catalog entry. Overwrites title, authors, and cover from the catalog.",
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "contentHash": {
              "description": "SHA-256 hash of the file content",
              "type": "string"
            },
            "hiveId": {
              "description": "BookHive catalog entry ID to link to",
              "type": "string"
            }
          },
          "required": [
            "contentHash",
            "hiveId"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "book": {
              "ref": "buzz.bookhive.getPersonalLibrary#personalBookView",
              "type": "ref"
            }
          },
          "required": [
            "book"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "buzz.bookhive.linkPersonalBook",
  "lexicon": 1
}