ZRM Docs
Domain Model

Site

Fields

FieldTypeRequiredDefaultDescription
idstring.uuidYesId
createdAtstring.date-timeYesCreated at
updatedAtstring.date-timeYesUpdated at
customerIdstringYesID of the associated customer
siteNamestringYesSite name
addressobjectYesAddress
siteTypeenum(commercial, residential, industrial, government, education, healthcare, retail, mixed_use)YesSite type
occupancyProfileenum(24_7, business_hours, extended_hours, seasonal, variable)NoOccupancy profile
serviceInstructionsstringNoService instructions
accessInstructionsstringNoAccess instructions
hazardsNotesstringNoHazards notes
customerSiteManagerContactIdstringNoID of the associated customer site manager contact
activeContractIdsstring[]YesActive contract ids
siteHealthScorenumberNoSite health score
workspaceIdstringYesID of the associated workspace
visibilityModeenum(global, workspace_local, shared)YesVisibility mode

Create Schema

Fields accepted when creating a new record:

FieldTypeRequiredDefaultDescription
customerIdstringYesID of the associated customer
siteNamestringYesSite name
addressobjectYesAddress
siteTypeenum(commercial, residential, industrial, government, education, healthcare, retail, mixed_use)YesSite type
occupancyProfileenum(24_7, business_hours, extended_hours, seasonal, variable)NoOccupancy profile
serviceInstructionsstringNoService instructions
accessInstructionsstringNoAccess instructions
hazardsNotesstringNoHazards notes
customerSiteManagerContactIdstringNoID of the associated customer site manager contact
activeContractIdsstring[]Yes[]Active contract ids
siteHealthScorenumberNoSite health score
workspaceIdstringNoID of the associated workspace
visibilityModeenum(global, workspace_local, shared)Yes"workspace_local"Visibility mode

Update Schema

All fields are optional when updating:

FieldTypeRequiredDefaultDescription
customerIdstringNoID of the associated customer
siteNamestringNoSite name
addressobjectNoAddress
siteTypeenum(commercial, residential, industrial, government, education, healthcare, retail, mixed_use)NoSite type
occupancyProfileenum(24_7, business_hours, extended_hours, seasonal, variable)NoOccupancy profile
serviceInstructionsstringNoService instructions
accessInstructionsstringNoAccess instructions
hazardsNotesstringNoHazards notes
customerSiteManagerContactIdstringNoID of the associated customer site manager contact
activeContractIdsstring[]No[]Active contract ids
siteHealthScorenumberNoSite health score

On this page