# chat.yakka.markRead

> Published by [yakka.chat](https://lexicon.garden/identity/did:plc:wpjoy2orkqq5m65vq7gg7liz)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:wpjoy2orkqq5m65vq7gg7liz/chat.yakka.markRead)
- [Documentation](https://lexicon.garden/lexicon/did:plc:wpjoy2orkqq5m65vq7gg7liz/chat.yakka.markRead/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:wpjoy2orkqq5m65vq7gg7liz/chat.yakka.markRead/examples)

## Definitions

### `chat.yakka.markRead`

**Type**: `procedure`

Advance the viewer's read marker for a channel. The marker is a `chat.yakka.readMarker` record in the viewer's own settings space (ADR 0017), so it follows them to any client rather than living in this appview's idea of them.

Monotonic: a marker never moves backwards, so an out-of-order call from a second tab cannot un-read a channel.

#### Input

**Encoding**: `application/json`

#### Errors

- **ChannelNotFound**

### `chat.yakka.markRead#input`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `seq` | `integer` | Yes | The highest sequence the viewer has seen. |
| `channel` | `string` | Yes |  |

## Raw Schema

```json
{
  "id": "chat.yakka.markRead",
  "defs": {
    "main": {
      "type": "procedure",
      "input": {
        "schema": {
          "ref": "#input",
          "type": "ref"
        },
        "encoding": "application/json"
      },
      "errors": [
        {
          "name": "ChannelNotFound"
        }
      ],
      "description": "Advance the viewer's read marker for a channel. The marker is a `chat.yakka.readMarker` record in the viewer's own settings space (ADR 0017), so it follows them to any client rather than living in this appview's idea of them.\n\nMonotonic: a marker never moves backwards, so an out-of-order call from a second tab cannot un-read a channel."
    },
    "input": {
      "type": "object",
      "required": [
        "channel",
        "seq"
      ],
      "properties": {
        "seq": {
          "type": "integer",
          "minimum": 1,
          "description": "The highest sequence the viewer has seen."
        },
        "channel": {
          "type": "string"
        }
      }
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
