# org.ballotready.constituent.endorsement

> An endorsement of a candidate for office declared by a constituent.

- Kind: record
- Record key: tid
- Authority: constituent.ballotready.org
- Lexicon: 1
- Published by [ballotready.org](https://lexicon.garden/identity/did:plc:tctahrvhb37udyarpqahggnv), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:tctahrvhb37udyarpqahggnv/org.ballotready.constituent.endorsement)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:tctahrvhb37udyarpqahggnv/org.ballotready.constituent.endorsement/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:tctahrvhb37udyarpqahggnv/org.ballotready.constituent.endorsement/analytics)

## Record (`org.ballotready.constituent.endorsement`)

Type: record · key tid

### Properties

- `candidacy` (ref)
  - Reference: `#candidacy`
- `comment` (string): Custom comment regarding this endorsement.
  - Constraints: maxLength: 2560, maxGraphemes: 256
- `createdAt` (string · datetime, required): Timestamp when this record was originally created.
- `organization` (ref)
  - Reference: `#organization`

## #candidacy (`org.ballotready.constituent.endorsement#candidacy`)

Type: object

A candidate in the running for a specific office in a specific election.

### Properties

- `civicEngineId` (string, required): CivicEngine API identifier for the candidacy.
- `election` (string): Election name.
- `name` (string): Candidate name.
- `position` (string): Position name.

## #organization (`org.ballotready.constituent.endorsement#organization`)

Type: object

An organization with verified endorsements.

### Properties

- `civicEngineId` (string, required): CivicEngine API identifier for the candidacy.
- `name` (string): Organization name.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "candidacy": {
      "description": "A candidate in the running for a specific office in a specific election.",
      "properties": {
        "civicEngineId": {
          "description": "CivicEngine API identifier for the candidacy.",
          "type": "string"
        },
        "election": {
          "description": "Election name.",
          "type": "string"
        },
        "name": {
          "description": "Candidate name.",
          "type": "string"
        },
        "position": {
          "description": "Position name.",
          "type": "string"
        }
      },
      "required": [
        "civicEngineId"
      ],
      "type": "object"
    },
    "main": {
      "description": "An endorsement of a candidate for office declared by a constituent.",
      "key": "tid",
      "record": {
        "properties": {
          "candidacy": {
            "ref": "#candidacy",
            "type": "ref"
          },
          "comment": {
            "description": "Custom comment regarding this endorsement.",
            "maxGraphemes": 256,
            "maxLength": 2560,
            "type": "string"
          },
          "createdAt": {
            "description": "Timestamp when this record was originally created.",
            "format": "datetime",
            "type": "string"
          },
          "organization": {
            "ref": "#organization",
            "type": "ref"
          }
        },
        "required": [
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    },
    "organization": {
      "description": "An organization with verified endorsements.",
      "properties": {
        "civicEngineId": {
          "description": "CivicEngine API identifier for the candidacy.",
          "type": "string"
        },
        "name": {
          "description": "Organization name.",
          "type": "string"
        }
      },
      "required": [
        "civicEngineId"
      ],
      "type": "object"
    }
  },
  "id": "org.ballotready.constituent.endorsement",
  "lexicon": 1
}
```
