Common Models

The following is an example of a Worksite:

{
  "worksiteId": 126,
  "name": "Early Learning Center",
  "isPreferred": true,
  "address": {
    "addressLine1": "257 Mountain Ave",
    "unitNo": null,
    "city": "Malden",
    "stateOrProvince": "MA",
    "zipOrPostalCode": "02148"
  },
  "employer": {
    "employerId": 99,
    "name": "Malden Public Schools"
  },
  "workAreas": [
    {
      "workAreaId": 567,
      "name": "Teacher"
    },
    {
      "workAreaId": 568,
      "name": "Food Service"
    }
  ]

Worksite

Each Worksite has the following properties:

PropertyTypeDescription
worksiteIdintRead-only; unique identifier for the Worksite
namestringName for the Worksite; optional if address is specified
isPreferredboolRequired; whether a Worksite is designated as preferred; each Employer must have one and only one preferred Worksite
addressobjectAddress of the Worksite; optional if name is specified
employerobjectEmployer associated with the Worksite
workAreasarray

Address

Each Address has the following properties:

PropertyTypeDescription
addressLine1stringRequired; street address of the Worksite
citystringOptional; city or town for the Worksite
unitNostringOptional; unit or suite number of the Worksite
stateOrProvincestringOptional; the two-character state code for the Worksite
zipOrPostalCodestringOptional; the 5-digit ZIP code for the Worksite

Employer

Each Employer has the following properties:

PropertyTypeDescription
employerIdintRead-only; unique identifier for the Employer
namestringRead-only; name for the employer

Work Area

Each Work Area has the following properties:

PropertyTypeDescription
workAreaIdintRead-only; unique identifier for the Work Area
namestringRequired; name for the Work Area