# app.didpic.notification.updateSeen

> Published by [lexicons.didpic.app](https://lexicon.garden/identity/did:plc:an2jtp4jgkkbtmwfzhpbxawd)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:an2jtp4jgkkbtmwfzhpbxawd/app.didpic.notification.updateSeen)
- [Documentation](https://lexicon.garden/lexicon/did:plc:an2jtp4jgkkbtmwfzhpbxawd/app.didpic.notification.updateSeen/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:an2jtp4jgkkbtmwfzhpbxawd/app.didpic.notification.updateSeen/examples)

## Definitions

### `app.didpic.notification.updateSeen`

**Type**: `procedure`

Mark notifications as seen up to seenAt.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `token` | `string` | No | Caller's push token. When supplied and bound to the viewer, the response carries the post-update device badge. |
| `seenAt` | `string` (datetime) | Yes |  |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `badge` | `integer` | No | Device-wide unread sum across every DID bound to the supplied token. |

## Raw Schema

```json
{
  "id": "app.didpic.notification.updateSeen",
  "defs": {
    "main": {
      "type": "procedure",
      "input": {
        "schema": {
          "type": "object",
          "required": [
            "seenAt"
          ],
          "properties": {
            "token": {
              "type": "string",
              "description": "Caller's push token. When supplied and bound to the viewer, the response carries the post-update device badge."
            },
            "seenAt": {
              "type": "string",
              "format": "datetime"
            }
          }
        },
        "encoding": "application/json"
      },
      "output": {
        "schema": {
          "type": "object",
          "properties": {
            "badge": {
              "type": "integer",
              "minimum": 0,
              "description": "Device-wide unread sum across every DID bound to the supplied token."
            }
          }
        },
        "encoding": "application/json"
      },
      "description": "Mark notifications as seen up to seenAt."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
