# work.lexical.collection.item

> Published by [lexical.work](https://lexicon.garden/identity/did:plc:6acm263n23glqje6xrd2mgbt)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:6acm263n23glqje6xrd2mgbt/work.lexical.collection.item)
- [Documentation](https://lexicon.garden/lexicon/did:plc:6acm263n23glqje6xrd2mgbt/work.lexical.collection.item/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:6acm263n23glqje6xrd2mgbt/work.lexical.collection.item/examples)

## Definitions

### `work.lexical.collection.item`

**Type**: `record`

A record linking a work to a collection.

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `note` | `string` | No | An optional note about this item in the collection. |
| `work` | `string` (at-uri) | Yes | AT URI of the work. Must reference a work.lexical.work or work.lexical.work.* record. |
| `position` | `integer` | No | 1-indexed position of this item in the collection. Meaningful when the collection is ranked. |
| `collection` | `string` (at-uri) | Yes | AT URI of the collection this item belongs to. |
| `noteFacets` | `array` | No | Facets for rich text in the note. Clients must accept but may ignore any or all facets. |
| `containsSpoilers` | `boolean` | No | If true, apps should obscure the note until the user chooses to reveal it. |

## Raw Schema

```json
{
  "id": "work.lexical.collection.item",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "collection",
          "work"
        ],
        "properties": {
          "note": {
            "type": "string",
            "maxLength": 1000,
            "description": "An optional note about this item in the collection.",
            "maxGraphemes": 4000
          },
          "work": {
            "type": "string",
            "format": "at-uri",
            "required": true,
            "maxLength": 2048,
            "description": "AT URI of the work. Must reference a work.lexical.work or work.lexical.work.* record."
          },
          "position": {
            "type": "integer",
            "minimum": 1,
            "description": "1-indexed position of this item in the collection. Meaningful when the collection is ranked."
          },
          "collection": {
            "type": "string",
            "format": "at-uri",
            "required": true,
            "maxLength": 2048,
            "description": "AT URI of the collection this item belongs to."
          },
          "noteFacets": {
            "type": "array",
            "items": {
              "ref": "social.lexical.richtext.facet",
              "type": "ref",
              "nullable": false
            },
            "nullable": false,
            "required": false,
            "description": "Facets for rich text in the note. Clients must accept but may ignore any or all facets."
          },
          "containsSpoilers": {
            "type": "boolean",
            "description": "If true, apps should obscure the note until the user chooses to reveal it."
          }
        }
      },
      "description": "A record linking a work to a collection."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
