{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Update an existing personal shelf.",
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "description": {
              "description": "New description for the shelf",
              "maxLength": 500,
              "type": "string"
            },
            "id": {
              "description": "ID of the shelf to update",
              "type": "integer"
            },
            "name": {
              "description": "New name for the shelf",
              "maxLength": 100,
              "minLength": 1,
              "type": "string"
            }
          },
          "required": [
            "id"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "shelf": {
              "ref": "buzz.bookhive.createPersonalShelf#personalShelfView",
              "type": "ref"
            }
          },
          "required": [
            "shelf"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "buzz.bookhive.updatePersonalShelf",
  "lexicon": 1
}
