# social.colibri.beta.notification.updateSeenForMessage

> Published by [colibri.social](https://lexicon.garden/identity/did:plc:mprdjqjluoswa7awzggaggj3)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:mprdjqjluoswa7awzggaggj3/social.colibri.beta.notification.updateSeenForMessage)
- [Documentation](https://lexicon.garden/lexicon/did:plc:mprdjqjluoswa7awzggaggj3/social.colibri.beta.notification.updateSeenForMessage/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:mprdjqjluoswa7awzggaggj3/social.colibri.beta.notification.updateSeenForMessage/examples)

## Definitions

### `social.colibri.beta.notification.updateSeenForMessage`

**Type**: `procedure`

Marks the notifications raised by one message seen.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `channel` | `string` (space-ref) | Yes | The channel the message was posted in. |
| `message` | `ref` → `social.colibri.beta.defs#recordRef` | Yes | The message whose notifications are marked seen. |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `unread` | `integer` | Yes | Number of unread notifications remaining. |

#### Errors

- **AuthRequired**: The request has no valid service auth.
- **ChannelNotFound**: No channel matches the given space reference.
- **MessageNotFound**: No message matches the given record reference in that channel.

## Raw Schema

```json
{
  "id": "social.colibri.beta.notification.updateSeenForMessage",
  "defs": {
    "main": {
      "type": "procedure",
      "input": {
        "schema": {
          "type": "object",
          "required": [
            "channel",
            "message"
          ],
          "properties": {
            "channel": {
              "type": "string",
              "format": "space-ref",
              "description": "The channel the message was posted in."
            },
            "message": {
              "ref": "social.colibri.beta.defs#recordRef",
              "type": "ref",
              "description": "The message whose notifications are marked seen."
            }
          }
        },
        "encoding": "application/json"
      },
      "errors": [
        {
          "name": "AuthRequired",
          "description": "The request has no valid service auth."
        },
        {
          "name": "ChannelNotFound",
          "description": "No channel matches the given space reference."
        },
        {
          "name": "MessageNotFound",
          "description": "No message matches the given record reference in that channel."
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "unread"
          ],
          "properties": {
            "unread": {
              "type": "integer",
              "description": "Number of unread notifications remaining."
            }
          }
        },
        "encoding": "application/json"
      },
      "description": "Marks the notifications raised by one message seen."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
