# com.livtet.shelf.update

> Load the shelf, apply the supplied fields, save. Answers NotFound when the shelf does not exist.

- Kind: procedure
- Authority: shelf.livtet.com
- Lexicon: 1
- Published by [biblio.livtet.com](https://lexicon.garden/identity/did:plc:e2x3ihw2ntxt7pcgzmtu3abi), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:e2x3ihw2ntxt7pcgzmtu3abi/com.livtet.shelf.update)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:e2x3ihw2ntxt7pcgzmtu3abi/com.livtet.shelf.update/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:e2x3ihw2ntxt7pcgzmtu3abi/com.livtet.shelf.update/analytics)

## Procedure (`com.livtet.shelf.update`)

Type: procedure · POST

### Input (application/json)

- `description` (string): New description. Omit to keep the current one; an empty string clears it.
  - Constraints: maxGraphemes: 8192
- `name` (string): New shelf name. Omit to keep the current one.
  - Constraints: maxLength: 128, maxGraphemes: 128
- `shelf` (string · at-uri, required): AT-URI of the shelf record to update.

### Output (application/json)

- `updated` (boolean, required): True when a field was changed, false when the input carried none.
- `uri` (string · at-uri, required): AT-URI of the updated shelf record.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Load the shelf, apply the supplied fields, save. Answers NotFound when the shelf does not exist.",
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "description": {
              "description": "New description. Omit to keep the current one; an empty string clears it.",
              "maxGraphemes": 8192,
              "type": "string"
            },
            "name": {
              "description": "New shelf name. Omit to keep the current one.",
              "maxGraphemes": 128,
              "maxLength": 128,
              "type": "string"
            },
            "shelf": {
              "description": "AT-URI of the shelf record to update.",
              "format": "at-uri",
              "type": "string"
            }
          },
          "required": [
            "shelf"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "updated": {
              "description": "True when a field was changed, false when the input carried none.",
              "type": "boolean"
            },
            "uri": {
              "description": "AT-URI of the updated shelf record.",
              "format": "at-uri",
              "type": "string"
            }
          },
          "required": [
            "uri",
            "updated"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "description": "Rename or re-describe one of the caller's shelves. Fields the input omits are left as they are.",
  "id": "com.livtet.shelf.update",
  "lexicon": 1
}
```
