# buzz.bookhive.addToPersonalShelf

> Add a book from the personal library to a personal shelf.

- Kind: procedure
- Authority: bookhive.buzz
- Lexicon: 1
- Published by [bookhive.buzz](https://lexicon.garden/identity/did:plc:enu2j5xjlqsjaylv3du4myh4), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:enu2j5xjlqsjaylv3du4myh4/buzz.bookhive.addToPersonalShelf)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:enu2j5xjlqsjaylv3du4myh4/buzz.bookhive.addToPersonalShelf/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:enu2j5xjlqsjaylv3du4myh4/buzz.bookhive.addToPersonalShelf/analytics)

## Procedure (`buzz.bookhive.addToPersonalShelf`)

Type: procedure · POST

### Input (application/json)

- `contentHash` (string, required): SHA-256 hash of the book file content
- `shelfId` (integer, required): ID of the shelf to add the book to

### Output (application/json)


## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Add a book from the personal library to a personal shelf.",
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "contentHash": {
              "description": "SHA-256 hash of the book file content",
              "type": "string"
            },
            "shelfId": {
              "description": "ID of the shelf to add the book to",
              "type": "integer"
            }
          },
          "required": [
            "shelfId",
            "contentHash"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {},
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "buzz.bookhive.addToPersonalShelf",
  "lexicon": 1
}
```
