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}$

Query Parameters

overlayOrganizationId?string

Organization overlay id. When supplied, the service merges the organization's measure overrides into global measures, includes organization-created measures, excludes organization-deleted measures, and may return overlay metadata such as overlayOrganizationId, overlayDocumentId, globalId, numberOverlayFields, and resolutionStatus. The same overlay context may also be supplied with the X-Organization-Id header.

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

Header Parameters

X-Organization-Id?string

Organization id used as the overlay organization context. Equivalent to overlayOrganizationId; when both are supplied, the query parameter takes precedence.

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": "65d4f20f8f5a4d7e9a123456",
  "parentDistrict": "65d4f20f8f5a4d7e9a123456",
  "districtType": "county",
  "cities": [
    "65d4f20f8f5a4d7e9a123456"
  ],
  "counties": [
    "65d4f20f8f5a4d7e9a123456"
  ],
  "additionalDistricts": [
    "65d4f20f8f5a4d7e9a123456"
  ],
  "excludedDistricts": [
    "65d4f20f8f5a4d7e9a123456"
  ],
  "originalDistrict": "65d4f20f8f5a4d7e9a123456",
  "supportedDistrictId": "65d4f20f8f5a4d7e9a123456",
  "title": "string",
  "descriptionShort": "string",
  "ballotText": "string",
  "actNumbers": "string",
  "whatItMeans": "string",
  "whatItMeansHtml": "string",
  "commentaryAvailable": false,
  "supportersSay": "string",
  "opponentsSay": "string",
  "sources": [
    {
      "url": "http://example.com",
      "type": "string",
      "sourceType": "website",
      "directQuote": "string",
      "title": "string"
    }
  ],
  "status": "incomplete",
  "coveragePlan": "auto-coverage",
  "coverageDefault": "auto-coverage",
  "coveragePlanIsDefault": true,
  "coverageStatus": "published",
  "attributedOrganizations": [
    {
      "key": "string",
      "coveragePlan": "no-coverage"
    }
  ],
  "priority": 0,
  "expectedReaders": 0,
  "districtSearchTerm": "string",
  "result": false,
  "overlayOrganizationId": "65d4f20f8f5a4d7e9a123456",
  "globalId": "65d4f20f8f5a4d7e9a123456",
  "overlayDocumentId": "65d4f20f8f5a4d7e9a123456",
  "numberOverlayFields": 0,
  "resolutionStatus": "string",
  "createdAt": "2019-08-24T14:15:22Z",
  "updatedAt": "2019-08-24T14:15:22Z"
}