# com.guineeeeeeeeeeeeeeeeeeeeeeeerm.patch

> Published by [guineeeeeeeeeeeeeeeeeeeeeeeerm.com](https://lexicon.garden/identity/did:plc:hikovhnehcqnmiyczrm5ww43)

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:hikovhnehcqnmiyczrm5ww43/com.guineeeeeeeeeeeeeeeeeeeeeeeerm.patch)
- [Documentation](https://lexicon.garden/lexicon/did:plc:hikovhnehcqnmiyczrm5ww43/com.guineeeeeeeeeeeeeeeeeeeeeeeerm.patch/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:hikovhnehcqnmiyczrm5ww43/com.guineeeeeeeeeeeeeeeeeeeeeeeerm.patch/examples)

## Definitions

### `com.guineeeeeeeeeeeeeeeeeeeeeeeerm.patch`

**Type**: `record`

A change to what readers see of a post, recorded without editing the text itself. Patches apply in order of createdAt, then id.

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `anchor` | `string` | Yes | Text that appears exactly once in the post as it currently reads. |
| `createdAt` | `string` (datetime) | Yes | When this record was written (UTC). |
| `id` | `string` | Yes | Name of the patch, unique on the site (lowercase letters, digits and hyphens). |
| `lang` | `string` | No | Which version the patch changes: ko or en. Absent means ko. |
| `op` | `string` | Yes | What to do at the anchor: replace it, insert text before or after it, or delete it. |
| `post` | `string` | Yes | Id of the post this record belongs to (the rkey of its com.guineeeeeeeeeeeeeeeeeeeeeeeerm.post record, YYYYMMDD-HHMMSS). |
| `text` | `string` | No | The new text. Required for replace, insert-before and insert-after; absent for delete. |
| `why` | `string` | Yes | Why the author made this change, in their own words. |

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A change to what readers see of a post, recorded without editing the text itself. Patches apply in order of createdAt, then id.",
      "key": "tid",
      "record": {
        "properties": {
          "anchor": {
            "description": "Text that appears exactly once in the post as it currently reads.",
            "type": "string"
          },
          "createdAt": {
            "description": "When this record was written (UTC).",
            "format": "datetime",
            "type": "string"
          },
          "id": {
            "description": "Name of the patch, unique on the site (lowercase letters, digits and hyphens).",
            "type": "string"
          },
          "lang": {
            "description": "Which version the patch changes: ko or en. Absent means ko.",
            "knownValues": [
              "ko",
              "en"
            ],
            "type": "string"
          },
          "op": {
            "description": "What to do at the anchor: replace it, insert text before or after it, or delete it.",
            "knownValues": [
              "replace",
              "insert-before",
              "insert-after",
              "delete"
            ],
            "type": "string"
          },
          "post": {
            "description": "Id of the post this record belongs to (the rkey of its com.guineeeeeeeeeeeeeeeeeeeeeeeerm.post record, YYYYMMDD-HHMMSS).",
            "type": "string"
          },
          "text": {
            "description": "The new text. Required for replace, insert-before and insert-after; absent for delete.",
            "type": "string"
          },
          "why": {
            "description": "Why the author made this change, in their own words.",
            "type": "string"
          }
        },
        "required": [
          "id",
          "post",
          "why",
          "op",
          "anchor",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "com.guineeeeeeeeeeeeeeeeeeeeeeeerm.patch",
  "lexicon": 1
}
```
