# social.coves.feed.vote

> Published by [coves.social](https://lexicon.garden/identity/did:web:coves.social)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:web:coves.social/social.coves.feed.vote)
- [Documentation](https://lexicon.garden/lexicon/did:web:coves.social/social.coves.feed.vote/docs)
- [Examples](https://lexicon.garden/lexicon/did:web:coves.social/social.coves.feed.vote/examples)

## Definitions

### `social.coves.feed.vote`

**Type**: `record`

Record declaring a vote (upvote or downvote) on a post or comment. Requires authentication.

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `subject` | `ref` → `com.atproto.repo.strongRef` | Yes | Strong reference to the post or comment being voted on |
| `createdAt` | `string` (datetime) | Yes | Timestamp when the vote was created |
| `direction` | `string` | Yes | Vote direction: up for upvote, down for downvote |

## Raw Schema

```json
{
  "id": "social.coves.feed.vote",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "subject",
          "direction",
          "createdAt"
        ],
        "properties": {
          "subject": {
            "ref": "com.atproto.repo.strongRef",
            "type": "ref",
            "description": "Strong reference to the post or comment being voted on"
          },
          "createdAt": {
            "type": "string",
            "format": "datetime",
            "description": "Timestamp when the vote was created"
          },
          "direction": {
            "type": "string",
            "maxLength": 64,
            "description": "Vote direction: up for upvote, down for downvote",
            "knownValues": [
              "up",
              "down"
            ]
          }
        }
      },
      "description": "Record declaring a vote (upvote or downvote) on a post or comment. Requires authentication."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
