# com.lstws.listItem

> Published by [lstws.com](https://lexicon.garden/identity/did:plc:on5inkl2cfazwsrqsgi3p5go)

✓ This is the authoritative definition for this NSID.

## Description

An item within a list.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:on5inkl2cfazwsrqsgi3p5go/com.lstws.listItem)
- [Documentation](https://lexicon.garden/lexicon/did:plc:on5inkl2cfazwsrqsgi3p5go/com.lstws.listItem/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:on5inkl2cfazwsrqsgi3p5go/com.lstws.listItem/examples)

## Definitions

### `com.lstws.listItem`

**Type**: `record`

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `comment` | `string` | No | Optional comment for the list item |
| `createdAt` | `string` (datetime) | Yes |  |
| `list` | `string` (at-uri) | Yes | The AT URI of the parent com.lstws.list record (points to the latest version). |
| `position` | `integer` | No | The item's canonical position when author ordering is enabled. |
| `title` | `string` | Yes | Title of the list item |
| `url` | `string` (uri) | Yes | The URL for the list item. |

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "key": "tid",
      "record": {
        "properties": {
          "comment": {
            "description": "Optional comment for the list item",
            "maxGraphemes": 240,
            "maxLength": 960,
            "type": "string"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "list": {
            "description": "The AT URI of the parent com.lstws.list record (points to the latest version).",
            "format": "at-uri",
            "type": "string"
          },
          "position": {
            "description": "The item's canonical position when author ordering is enabled.",
            "minimum": 1,
            "type": "integer"
          },
          "title": {
            "description": "Title of the list item",
            "maxGraphemes": 80,
            "maxLength": 320,
            "type": "string"
          },
          "url": {
            "description": "The URL for the list item.",
            "format": "uri",
            "type": "string"
          }
        },
        "required": [
          "list",
          "title",
          "url",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "description": "An item within a list.",
  "id": "com.lstws.listItem",
  "lexicon": 1
}
```
