Space Docs
Domain Model

Site

Fields

FieldTypeRequiredDefaultDescription
idstring.uuidYes—Id
createdAtstring.date-timeYes—Created at
updatedAtstring.date-timeYes—Updated at
customerIdstringYes—ID of the associated customer
siteNamestringYes—Site name
addressobjectYes—Address
siteTypeenum(commercial, residential, industrial, government, education, healthcare, retail, mixed_use)Yes—Site type
occupancyProfileenum(24_7, business_hours, extended_hours, seasonal, variable)No—Occupancy profile
serviceInstructionsstringNo—Service instructions
accessInstructionsstringNo—Access instructions
hazardsNotesstringNo—Hazards notes
customerSiteManagerContactIdstringNo—ID of the associated customer site manager contact
activeContractIdsstring[]Yes—Active contract ids
siteHealthScorenumberNo—Site health score
workspaceIdstringYes—ID of the associated workspace
visibilityModeunknownYes—Visibility mode

Create Schema

Fields accepted when creating a new record:

FieldTypeRequiredDefaultDescription
customerIdstringYes—ID of the associated customer
siteNamestringYes—Site name
addressobjectYes—Address
siteTypeenum(commercial, residential, industrial, government, education, healthcare, retail, mixed_use)Yes—Site type
occupancyProfileenum(24_7, business_hours, extended_hours, seasonal, variable)No—Occupancy profile
serviceInstructionsstring,nullNo—Service instructions
accessInstructionsstring,nullNo—Access instructions
hazardsNotesstring,nullNo—Hazards notes
customerSiteManagerContactIdunknownNo—ID of the associated customer site manager contact
activeContractIdsstring[]Yes[]Active contract ids
siteHealthScorenumberNo—Site health score
workspaceIdstringNo—ID of the associated workspace
visibilityModeunknownNo—Visibility mode

Update Schema

All fields are optional when updating:

FieldTypeRequiredDefaultDescription
customerIdstringNo—ID of the associated customer
siteNamestringNo—Site name
addressobjectNo—Address
siteTypeenum(commercial, residential, industrial, government, education, healthcare, retail, mixed_use)No—Site type
occupancyProfileenum(24_7, business_hours, extended_hours, seasonal, variable)No—Occupancy profile
serviceInstructionsstring,nullNo—Service instructions
accessInstructionsstring,nullNo—Access instructions
hazardsNotesstring,nullNo—Hazards notes
customerSiteManagerContactIdunknownNo—ID of the associated customer site manager contact
activeContractIdsstring[]No—Active contract ids
siteHealthScorenumberNo—Site health score

On this page