VoterGuideOS

Get measure by ID

Returns a single ballot measure by id.

GET
/measures/{id}

Path Parameters

id*string

Measure id.

Match^[a-fA-F0-9]{24}$

Header Parameters

X-Organization-Id?string

Organization id used as the overlay organization context.

Match^[a-fA-F0-9]{24}$

Response Body

application/json

Measure response.

TypeScript Definitions

Use the response body type in TypeScript.

application/json

Core data reads require an organization overlay context.

TypeScript Definitions

Use the response body type in TypeScript.

application/json

Measure was not found.

TypeScript Definitions

Use the response body type in TypeScript.

curl -X GET "https://example.com/measures/65d4f20f8f5a4d7e9a123456" \  -H "X-Organization-Id: org_123"
{
  "_id": "65d4f20f8f5a4d7e9a123456",
  "election": "string",
  "key": "string",
  "district": {
    "_id": "65d4f20f8f5a4d7e9a123456",
    "type": "county",
    "matchName": "ga-fulton",
    "displayName": "string",
    "createdAt": "2019-08-24T14:15:22Z",
    "updatedAt": "2019-08-24T14:15:22Z",
    "name": "string",
    "fipsCode": "string",
    "number": 0,
    "letter": "string",
    "parentId": "65d4f20f8f5a4d7e9a123456",
    "parent": "string",
    "parentsFlat": [
      "65d4f20f8f5a4d7e9a123456"
    ],
    "population": 0,
    "populationType": "definitive",
    "votingType": "voting-district",
    "intersectingCities": [
      "65d4f20f8f5a4d7e9a123456"
    ],
    "intersectingCounties": [
      "65d4f20f8f5a4d7e9a123456"
    ],
    "state": "65d4f20f8f5a4d7e9a123456",
    "translationAvailable": true,
    "longName": "State House District 77",
    "shortName": "District 77"
  },
  "parentDistrict": "65d4f20f8f5a4d7e9a123456",
  "districtType": "county",
  "cities": [
    "65d4f20f8f5a4d7e9a123456"
  ],
  "counties": [
    "65d4f20f8f5a4d7e9a123456"
  ],
  "originalDistrict": "65d4f20f8f5a4d7e9a123456",
  "title": "string",
  "descriptionShort": "string",
  "ballotText": "string",
  "whatItMeans": "string",
  "whatItMeansHtml": "string",
  "readMoreLinks": [
    {
      "text": "string",
      "url": "http://example.com",
      "date": "2019-08-24",
      "author": "string",
      "image": "http://example.com"
    }
  ],
  "districtSearchTerm": "string",
  "overlayOrganizationId": "65d4f20f8f5a4d7e9a123456",
  "globalId": "65d4f20f8f5a4d7e9a123456",
  "overlayDocumentId": "65d4f20f8f5a4d7e9a123456",
  "numberOverlayFields": 0,
  "resolutionStatus": "string",
  "createdAt": "2019-08-24T14:15:22Z",
  "updatedAt": "2019-08-24T14:15:22Z"
}