# dev.frogspace.stacks.collection

> Published by [spacefrog.dev](https://lexicon.garden/identity/did:plc:b3ddarwfwuulrq7p2cfwhvmz)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:b3ddarwfwuulrq7p2cfwhvmz/dev.frogspace.stacks.collection)
- [Documentation](https://lexicon.garden/lexicon/did:plc:b3ddarwfwuulrq7p2cfwhvmz/dev.frogspace.stacks.collection/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:b3ddarwfwuulrq7p2cfwhvmz/dev.frogspace.stacks.collection/examples)

## Definitions

### `dev.frogspace.stacks.collection`

**Type**: `record`

a named collection of saved citations. items reference collections by their record AT-URI in the item's collections field. ordering is a client concern.

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `createdAt` | `string` (datetime) | Yes | time the collection was created. preserve it when editing. |
| `description` | `string` | No | optional description of the collection. |
| `name` | `string` | Yes | human-readable collection name, at most 128 graphemes. |

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "a named collection of saved citations. items reference collections by their record AT-URI in the item's collections field. ordering is a client concern.",
      "key": "tid",
      "record": {
        "properties": {
          "createdAt": {
            "description": "time the collection was created. preserve it when editing.",
            "format": "datetime",
            "type": "string"
          },
          "description": {
            "description": "optional description of the collection.",
            "maxGraphemes": 2048,
            "maxLength": 8192,
            "type": "string"
          },
          "name": {
            "description": "human-readable collection name, at most 128 graphemes.",
            "maxGraphemes": 128,
            "maxLength": 512,
            "type": "string"
          }
        },
        "required": [
          "name",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "dev.frogspace.stacks.collection",
  "lexicon": 1
}
```
