# app.userinput.edit

> Published by [userinput.app](https://lexicon.garden/identity/did:plc:uyixj57k6nmxrdj7pjs2ss5s)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:uyixj57k6nmxrdj7pjs2ss5s/app.userinput.edit)
- [Documentation](https://lexicon.garden/lexicon/did:plc:uyixj57k6nmxrdj7pjs2ss5s/app.userinput.edit/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:uyixj57k6nmxrdj7pjs2ss5s/app.userinput.edit/examples)

## Definitions

### `app.userinput.edit`

**Type**: `record`

A revision of a discussion or reply, written as a sidecar that points at the original (never mutating it). Only honored when authored by the subject's own author; the newest createdAt is the live content, and the full set is the edit history. Lives in the author's repo.

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `body` | `string` | No | Replacement body. |
| `tags` | `array` | No | Replacement tag values (discussion edits only), drawn from the space's tag list. |
| `title` | `string` | No | Replacement title (discussion edits only). |
| `subject` | `ref` → `com.atproto.repo.strongRef` | Yes | The discussion or reply being revised. Indexed by constellation at subject.uri. The pinned cid identifies the version this edit was authored against. |
| `createdAt` | `string` (datetime) | Yes |  |

## Raw Schema

```json
{
  "id": "app.userinput.edit",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "subject",
          "createdAt"
        ],
        "properties": {
          "body": {
            "type": "string",
            "maxLength": 20000,
            "description": "Replacement body.",
            "maxGraphemes": 10000
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 64
            },
            "maxLength": 8,
            "description": "Replacement tag values (discussion edits only), drawn from the space's tag list."
          },
          "title": {
            "type": "string",
            "maxLength": 600,
            "description": "Replacement title (discussion edits only).",
            "maxGraphemes": 300
          },
          "subject": {
            "ref": "com.atproto.repo.strongRef",
            "type": "ref",
            "description": "The discussion or reply being revised. Indexed by constellation at subject.uri. The pinned cid identifies the version this edit was authored against."
          },
          "createdAt": {
            "type": "string",
            "format": "datetime"
          }
        }
      },
      "description": "A revision of a discussion or reply, written as a sidecar that points at the original (never mutating it). Only honored when authored by the subject's own author; the newest createdAt is the live content, and the full set is the edit history. Lives in the author's repo."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
