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:

PropertyTypeDescription
districtFieldIdintRead-only; Unique identifier for a District Field
namestringA name for this District Field
parentFieldIdintUnique identifier for the District Field’s parent, or null if no such parent exists
isCustomDistrictboolIndicates whether the field is a custom district (true) or not (false)
districtFieldValuesarrayList of valid District Field Values for this district

District Field Value

Each District Field Value has the following properties:

PropertyTypeDescription
idstringRead-only; Unique identifier for the District Field Value
namestringA name for this District Field Value
parentIdstringUnique identifier for the District Field Value’s parent, or null if no such parent exists (because the District Field Value lacks a parent)