# fyi.opensocial.chat.room

> Published by [lexicons.opensocial.fyi](https://lexicon.garden/identity/did:plc:2gqnilpksz2e7faj3bwvo6qc)

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:2gqnilpksz2e7faj3bwvo6qc/fyi.opensocial.chat.room)
- [Documentation](https://lexicon.garden/lexicon/did:plc:2gqnilpksz2e7faj3bwvo6qc/fyi.opensocial.chat.room/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:2gqnilpksz2e7faj3bwvo6qc/fyi.opensocial.chat.room/examples)

## Definitions

### `fyi.opensocial.chat.room`

**Type**: `record`

A room in a group's chat for something, such as an upcoming event: written by the group, in its chat space, keyed like what it's about. Messages say which room they're in with `room`.

**Key**: `any`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `createdAt` | `string` (datetime) | Yes |  |
| `name` | `string` | No | What the room is called: what it's about, as it was named when it opened. |
| `subject` | `ref` → `com.atproto.repo.strongRef` | Yes | What the room is about. |

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A room in a group's chat for something, such as an upcoming event: written by the group, in its chat space, keyed like what it's about. Messages say which room they're in with `room`.",
      "key": "any",
      "record": {
        "properties": {
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "name": {
            "description": "What the room is called: what it's about, as it was named when it opened.",
            "maxGraphemes": 64,
            "maxLength": 640,
            "type": "string"
          },
          "subject": {
            "description": "What the room is about.",
            "ref": "com.atproto.repo.strongRef",
            "type": "ref"
          }
        },
        "required": [
          "subject",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "fyi.opensocial.chat.room",
  "lexicon": 1
}
```
