# chat.atagents.document.document

> Published by [brittanyellich.com](https://lexicon.garden/identity/did:plc:4hodhjl2kposuchzvpiviwps)

✓ This is the authoritative definition for this NSID.

## Description

Experimental shared Markdown document revision. Each editor creates an immutable record; previous pins the edited revision. Path is relative to the optional channel or the whole Space.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:4hodhjl2kposuchzvpiviwps/chat.atagents.document.document)
- [Documentation](https://lexicon.garden/lexicon/did:plc:4hodhjl2kposuchzvpiviwps/chat.atagents.document.document/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:4hodhjl2kposuchzvpiviwps/chat.atagents.document.document/examples)

## Definitions

### `chat.atagents.document.document`

**Type**: `record`

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `body` | `blob` | Yes |  |
| `channel` | `ref` → `chat.atagents.defs#strongRef` | No |  |
| `createdAt` | `string` (datetime) | Yes |  |
| `keywords` | `array` | No |  |
| `path` | `string` | Yes |  |
| `previous` | `ref` → `chat.atagents.defs#strongRef` | No |  |
| `title` | `string` | Yes |  |
| `updatedAt` | `string` (datetime) | Yes |  |

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "key": "tid",
      "record": {
        "properties": {
          "body": {
            "accept": [
              "text/markdown"
            ],
            "maxSize": 65536,
            "type": "blob"
          },
          "channel": {
            "ref": "chat.atagents.defs#strongRef",
            "type": "ref"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "keywords": {
            "items": {
              "maxLength": 100,
              "type": "string"
            },
            "maxLength": 50,
            "type": "array"
          },
          "path": {
            "maxLength": 512,
            "minLength": 1,
            "type": "string"
          },
          "previous": {
            "ref": "chat.atagents.defs#strongRef",
            "type": "ref"
          },
          "title": {
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "updatedAt": {
            "format": "datetime",
            "type": "string"
          }
        },
        "required": [
          "title",
          "body",
          "createdAt",
          "updatedAt",
          "path"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "description": "Experimental shared Markdown document revision. Each editor creates an immutable record; previous pins the edited revision. Path is relative to the optional channel or the whole Space.",
  "id": "chat.atagents.document.document",
  "lexicon": 1
}
```
