Common models

The following is an example of a District Field:

{
    "districtFieldId": 999,
    "name": "State House",
    "parentFieldId": 888,
    "isCustomDistrict": false,
    "districtFieldValues": [
        {
            "id": "10",
            "name": "Jackson County District 10",
            "parentId": "1234"
        },
        {
            "id": "11",
            "name": "Jackson County District 11",
            "parentId": "1234"
        },
        {
            "id": "12",
            "name": "Jackson County District 12",
            "parentId": "1234"
        },
        {
            "id": "20",
            "name": "Jefferson County District 20",
            "parentId": "2345"
        }
    ]
}

District Field

Each District Field has the following properties:

Property

Type

Description

districtFieldId

int

Read-only; Unique identifier for a District Field

name

string

A name for this District Field

parentFieldId

int

Unique identifier for the District Field’s parent, or null if no such parent exists

isCustomDistrict

bool

Indicates whether the field is a custom district (true) or not (false)

districtFieldValues

array

List of valid District Field Values for this district

District Field Value

Each District Field Value has the following properties:

Property

Type

Description

id

string

Read-only; Unique identifier for the District Field Value

name

string

A name for this District Field Value

parentId

string

Unique identifier for the District Field Value’s parent, or null if no such parent exists (because the District Field Value lacks a parent)