# dev.knotless.updateSeen

> Published by [lexicons.knotless.dev](https://lexicon.garden/identity/did:plc:yqsg7znbbhfmj3a2nrpnaerk)

✓ This is the authoritative definition for this NSID.

## Description

Says the asking account has seen its notifications up to a time.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:yqsg7znbbhfmj3a2nrpnaerk/dev.knotless.updateSeen)
- [Documentation](https://lexicon.garden/lexicon/did:plc:yqsg7znbbhfmj3a2nrpnaerk/dev.knotless.updateSeen/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:yqsg7znbbhfmj3a2nrpnaerk/dev.knotless.updateSeen/examples)

## Definitions

### `dev.knotless.updateSeen`

**Type**: `procedure`

Keeps, on the appview, when the asking account last saw its notifications: those from then on are unread. A time before the one kept leaves it. Requires authentication: a service token, or the session cookie the pages' login sets, from the pages themselves.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `seenAt` | `string` (datetime) | Yes | The newest notification seen, by its createdAt. |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `seenAt` | `string` (datetime) | Yes | When it last saw them now, as kept. |

#### Errors

- **AuthenticationRequired**: No account asks.

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Keeps, on the appview, when the asking account last saw its notifications: those from then on are unread. A time before the one kept leaves it. Requires authentication: a service token, or the session cookie the pages' login sets, from the pages themselves.",
      "errors": [
        {
          "description": "No account asks.",
          "name": "AuthenticationRequired"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "seenAt": {
              "description": "The newest notification seen, by its createdAt.",
              "format": "datetime",
              "type": "string"
            }
          },
          "required": [
            "seenAt"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "seenAt": {
              "description": "When it last saw them now, as kept.",
              "format": "datetime",
              "type": "string"
            }
          },
          "required": [
            "seenAt"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "description": "Says the asking account has seen its notifications up to a time.",
  "id": "dev.knotless.updateSeen",
  "lexicon": 1
}
```
