# id.skiddle.draft

> A skiddle.id post that isn't published yet, kept apart from site.standard.document so readers don't list it. Anyone can read it on the PDS. Publishing turns it into a site.standard.document and deletes the draft.

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

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:xaj6j6abvpgwps5v6k4t6clv/id.skiddle.draft)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:xaj6j6abvpgwps5v6k4t6clv/id.skiddle.draft/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:xaj6j6abvpgwps5v6k4t6clv/id.skiddle.draft/analytics)

## Record (`id.skiddle.draft`)

Type: record · key tid

### Properties

- `content` (ref, required)
  - Reference: `id.skiddle.post`
- `coverImage` (blob): The share card, drawn when the draft is scheduled, so publishing it needs no drawing.
  - Constraints: maxSize: 1000000, accept: image/*
- `createdAt` (string · datetime, required)
- `description` (string)
  - Constraints: maxLength: 30000, maxGraphemes: 3000
- `path` (string): Where the post will live once published, e.g. /posts/lab-notes-2/.
  - Constraints: maxLength: 512
- `publishAt` (string · datetime): When to publish it. Absent: not scheduled.
- `tags` (array)
  - Constraints: maxLength: 50
  - `items` (string)
    - Constraints: maxLength: 1280, maxGraphemes: 128
- `title` (string, required)
  - Constraints: maxLength: 5000, maxGraphemes: 500
- `updatedAt` (string · datetime)

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A skiddle.id post that isn't published yet, kept apart from site.standard.document so readers don't list it. Anyone can read it on the PDS. Publishing turns it into a site.standard.document and deletes the draft.",
      "key": "tid",
      "record": {
        "properties": {
          "content": {
            "ref": "id.skiddle.post",
            "type": "ref"
          },
          "coverImage": {
            "accept": [
              "image/*"
            ],
            "description": "The share card, drawn when the draft is scheduled, so publishing it needs no drawing.",
            "maxSize": 1000000,
            "type": "blob"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "description": {
            "maxGraphemes": 3000,
            "maxLength": 30000,
            "type": "string"
          },
          "path": {
            "description": "Where the post will live once published, e.g. /posts/lab-notes-2/.",
            "maxLength": 512,
            "type": "string"
          },
          "publishAt": {
            "description": "When to publish it. Absent: not scheduled.",
            "format": "datetime",
            "type": "string"
          },
          "tags": {
            "items": {
              "maxGraphemes": 128,
              "maxLength": 1280,
              "type": "string"
            },
            "maxLength": 50,
            "type": "array"
          },
          "title": {
            "maxGraphemes": 500,
            "maxLength": 5000,
            "type": "string"
          },
          "updatedAt": {
            "format": "datetime",
            "type": "string"
          }
        },
        "required": [
          "title",
          "content",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "id.skiddle.draft",
  "lexicon": 1
}
```
