# com.lvl99.paintcanvas.palette

> A PaintCanvas colour palette, keyed by its ID (a UUID).

- Kind: record
- Record key: any
- Authority: paintcanvas.lvl99.com
- Lexicon: 1
- Published by [livecanvas.lvl99.com](https://lexicon.garden/identity/did:plc:pnraiwv3cf2ue5qdfsrze63z), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:pnraiwv3cf2ue5qdfsrze63z/com.lvl99.paintcanvas.palette)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:pnraiwv3cf2ue5qdfsrze63z/com.lvl99.paintcanvas.palette/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:pnraiwv3cf2ue5qdfsrze63z/com.lvl99.paintcanvas.palette/analytics)

## Record (`com.lvl99.paintcanvas.palette`)

Type: record · key any

### Properties

- `author` (ref, required): Who made it.
  - Reference: `com.lvl99.paintcanvas.defs#author`
- `content` (blob, required): What the colour palette holds, as JSON: the `content` of a PaintCanvas colour-palette asset, described by the schema `contentSchema` names.
  - Constraints: maxSize: 1000000, accept: application/json
- `contentSchema` (string · uri): URL of the PaintCanvas asset schema `content` follows, e.g. "https://lvl99.github.io/paintcanvas/schemas/colour-palette-2.0.0.json".
  - Constraints: maxLength: 2048
- `createdAt` (string · datetime): When the record was made.
- `group` (string): The family it belongs to, listed together (e.g. "Round").
  - Constraints: maxLength: 1000, maxGraphemes: 100
- `name` (string, required): The colour palette's name.
  - Constraints: maxLength: 1000, maxGraphemes: 100
- `updatedAt` (string · datetime): When it was last changed (opening it doesn't count), to sync copies kept in more than one place.
- `version` (string): The asset's own version (not its schema's), e.g. "1.1.0".
  - Constraints: maxLength: 20

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A PaintCanvas colour palette, keyed by its ID (a UUID).",
      "key": "any",
      "record": {
        "properties": {
          "author": {
            "description": "Who made it.",
            "ref": "com.lvl99.paintcanvas.defs#author",
            "type": "ref"
          },
          "content": {
            "accept": [
              "application/json"
            ],
            "description": "What the colour palette holds, as JSON: the `content` of a PaintCanvas colour-palette asset, described by the schema `contentSchema` names.",
            "maxSize": 1000000,
            "type": "blob"
          },
          "contentSchema": {
            "description": "URL of the PaintCanvas asset schema `content` follows, e.g. \"https://lvl99.github.io/paintcanvas/schemas/colour-palette-2.0.0.json\".",
            "format": "uri",
            "maxLength": 2048,
            "type": "string"
          },
          "createdAt": {
            "description": "When the record was made.",
            "format": "datetime",
            "type": "string"
          },
          "group": {
            "description": "The family it belongs to, listed together (e.g. \"Round\").",
            "maxGraphemes": 100,
            "maxLength": 1000,
            "type": "string"
          },
          "name": {
            "description": "The colour palette's name.",
            "maxGraphemes": 100,
            "maxLength": 1000,
            "type": "string"
          },
          "updatedAt": {
            "description": "When it was last changed (opening it doesn't count), to sync copies kept in more than one place.",
            "format": "datetime",
            "type": "string"
          },
          "version": {
            "description": "The asset's own version (not its schema's), e.g. \"1.1.0\".",
            "maxLength": 20,
            "type": "string"
          }
        },
        "required": [
          "name",
          "author",
          "content"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "description": "A PaintCanvas colour palette, keyed by its ID (a UUID).",
  "id": "com.lvl99.paintcanvas.palette",
  "lexicon": 1
}
```
