# tech.tokimeki.poll.poll

> Published by [tokimeki.blue](https://lexicon.garden/identity/did:plc:4tr5dqti7nmu6g2czpthntak)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:4tr5dqti7nmu6g2czpthntak/tech.tokimeki.poll.poll)
- [Documentation](https://lexicon.garden/lexicon/did:plc:4tr5dqti7nmu6g2czpthntak/tech.tokimeki.poll.poll/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:4tr5dqti7nmu6g2czpthntak/tech.tokimeki.poll.poll/examples)

## Definitions

### `tech.tokimeki.poll.poll`

**Type**: `record`

A poll record that can be attached to a post via embed.external

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `endsAt` | `string` (datetime) | Yes | When the poll closes for voting |
| `options` | `array` | Yes | Poll options (2-4 choices) |
| `subject` | `ref` → `com.atproto.repo.strongRef` | No | Reference to the post this poll is attached to |
| `createdAt` | `string` (datetime) | Yes |  |

## Raw Schema

```json
{
  "id": "tech.tokimeki.poll.poll",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "options",
          "createdAt",
          "endsAt"
        ],
        "properties": {
          "endsAt": {
            "type": "string",
            "format": "datetime",
            "description": "When the poll closes for voting"
          },
          "options": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 100,
              "maxGraphemes": 50
            },
            "maxLength": 4,
            "minLength": 2,
            "description": "Poll options (2-4 choices)"
          },
          "subject": {
            "ref": "com.atproto.repo.strongRef",
            "type": "ref",
            "description": "Reference to the post this poll is attached to"
          },
          "createdAt": {
            "type": "string",
            "format": "datetime"
          }
        }
      },
      "description": "A poll record that can be attached to a post via embed.external"
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
