# xyz.opnshelf.list.item

> Published by [opnshelf.xyz](https://lexicon.garden/identity/did:plc:jkf4momksftvstbyqnb5sxik)

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:jkf4momksftvstbyqnb5sxik/xyz.opnshelf.list.item)
- [Documentation](https://lexicon.garden/lexicon/did:plc:jkf4momksftvstbyqnb5sxik/xyz.opnshelf.list.item/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:jkf4momksftvstbyqnb5sxik/xyz.opnshelf.list.item/examples)

## Definitions

### `xyz.opnshelf.list.item`

**Type**: `record`

A media item in a list for OpnShelf

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `notes` | `string` | No | Optional user notes about the media in this list |
| `mediaId` | `string` | Yes | TMDB movie ID or show ID |
| `listRkey` | `string` | Yes | Rkey of the parent list |
| `createdAt` | `string` (datetime) | Yes | Record creation timestamp |
| `mediaType` | `string` | Yes | Media type |
| `seasonNumber` | `integer` | No | Season number for season/episode items |
| `episodeNumber` | `integer` | No | Episode number for episode items |

## Raw Schema

```json
{
  "id": "xyz.opnshelf.list.item",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "listRkey",
          "mediaType",
          "mediaId",
          "createdAt"
        ],
        "properties": {
          "notes": {
            "type": "string",
            "description": "Optional user notes about the media in this list"
          },
          "mediaId": {
            "type": "string",
            "description": "TMDB movie ID or show ID"
          },
          "listRkey": {
            "type": "string",
            "description": "Rkey of the parent list"
          },
          "createdAt": {
            "type": "string",
            "format": "datetime",
            "description": "Record creation timestamp"
          },
          "mediaType": {
            "enum": [
              "movie",
              "show",
              "season",
              "episode"
            ],
            "type": "string",
            "description": "Media type"
          },
          "seasonNumber": {
            "type": "integer",
            "description": "Season number for season/episode items"
          },
          "episodeNumber": {
            "type": "integer",
            "description": "Episode number for episode items"
          }
        }
      },
      "description": "A media item in a list for OpnShelf"
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
