# social.popfeed.club.poll

> Authority-owned poll and acknowledged ballot tally. Raw vote records are proposals until accepted by the authority.

- Kind: record
- Record key: any
- Authority: club.popfeed.social
- Lexicon: 1
- Published by [popfeed.social](https://lexicon.garden/identity/did:plc:i6k6scfcdaup4e2va33nkprb), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:i6k6scfcdaup4e2va33nkprb/social.popfeed.club.poll)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:i6k6scfcdaup4e2va33nkprb/social.popfeed.club.poll/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:i6k6scfcdaup4e2va33nkprb/social.popfeed.club.poll/analytics)

## Record (`social.popfeed.club.poll`)

Type: record · key any

### Properties

- `ballots` (array)
  - Constraints: maxLength: 1000
  - `items` (object)
- `closedAt` (string · datetime): When an organizer ended voting early.
- `closesAt` (string · datetime, required)
- `createdAt` (string · datetime, required)
- `options` (array, required)
  - Constraints: minLength: 2, maxLength: 20
  - `items` (string · uri)
- `round` (string): The current selection rkey, or first before a selection exists.
  - Constraints: maxLength: 64
- `title` (string, required)
  - Constraints: minLength: 1, maxLength: 120

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "key": "any",
      "record": {
        "properties": {
          "ballots": {
            "items": {
              "properties": {
                "did": {
                  "format": "did",
                  "type": "string"
                },
                "nomination": {
                  "format": "uri",
                  "type": "string"
                }
              },
              "required": [
                "did",
                "nomination"
              ],
              "type": "object"
            },
            "maxLength": 1000,
            "type": "array"
          },
          "closedAt": {
            "description": "When an organizer ended voting early.",
            "format": "datetime",
            "type": "string"
          },
          "closesAt": {
            "format": "datetime",
            "type": "string"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "options": {
            "items": {
              "format": "uri",
              "type": "string"
            },
            "maxLength": 20,
            "minLength": 2,
            "type": "array"
          },
          "round": {
            "description": "The current selection rkey, or first before a selection exists.",
            "maxLength": 64,
            "type": "string"
          },
          "title": {
            "maxLength": 120,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "title",
          "options",
          "closesAt",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "description": "Authority-owned poll and acknowledged ballot tally. Raw vote records are proposals until accepted by the authority.",
  "id": "social.popfeed.club.poll",
  "lexicon": 1
}
```
