# at.atmosynth.collection

> A titled, ordered list of at.atmosynth.patch records.

- Kind: record
- Record key: tid
- Authority: atmosynth.at
- Lexicon: 1
- Published by [atmosynth.at](https://lexicon.garden/identity/did:plc:fzjkahpwapmoqxybwdjb6ysf), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:fzjkahpwapmoqxybwdjb6ysf/at.atmosynth.collection)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:fzjkahpwapmoqxybwdjb6ysf/at.atmosynth.collection/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:fzjkahpwapmoqxybwdjb6ysf/at.atmosynth.collection/analytics)

## Record (`at.atmosynth.collection`)

Type: record · key tid

### Properties

- `createdAt` (string · datetime, required)
- `description` (string, required)
  - Constraints: maxLength: 3000
- `patches` (array, required): In the order the collection lists them. A patch is named once.
  - Constraints: maxLength: 500
  - `items` (ref)
    - Reference: `#patchRef`
- `title` (string, required)
  - Constraints: minLength: 1, maxLength: 200

## #patchRef (`at.atmosynth.collection#patchRef`)

Type: object

One patch in the collection, by its address. Not a strong reference: a collection keeps a patch as its creator goes on changing it, and a patch since deleted is simply one the collection can no longer show.

### Properties

- `uri` (string · at-uri, required)

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A titled, ordered list of at.atmosynth.patch records.",
      "key": "tid",
      "record": {
        "properties": {
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "description": {
            "maxLength": 3000,
            "type": "string"
          },
          "patches": {
            "description": "In the order the collection lists them. A patch is named once.",
            "items": {
              "ref": "#patchRef",
              "type": "ref"
            },
            "maxLength": 500,
            "type": "array"
          },
          "title": {
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "title",
          "description",
          "patches",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    },
    "patchRef": {
      "description": "One patch in the collection, by its address. Not a strong reference: a collection keeps a patch as its creator goes on changing it, and a patch since deleted is simply one the collection can no longer show.",
      "properties": {
        "uri": {
          "format": "at-uri",
          "type": "string"
        }
      },
      "required": [
        "uri"
      ],
      "type": "object"
    }
  },
  "description": "A collection of synth patches, held in its creator's own repository: a title, a description and the patches it gathers — the creator's own or anybody's — in the order they are listed.",
  "id": "at.atmosynth.collection",
  "lexicon": 1
}
```
