A poll record that can be attached to a post via embed.external
Record Key
tid
Timestamp-based ID
Properties
createdAt
string
datetime
Required
An RFC 3339 formatted timestamp.
endsAt
string
datetime
Required
When the poll closes for voting
options
array
of
string
Required
Poll options (2-4 choices)
maxLength: 4 itemsminLength: 2 itemssubject
ref
com.atproto.repo.strongRef
Optional
Reference to the post this poll is attached to
View raw schema
{
"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"
}