API ReferenceSite
site.create
Type: Mutation · Auth: Workspace-aware
Input
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| customerId | string | Yes | — | ID of the associated customer |
| siteName | string | Yes | — | Site name |
| address | object | Yes | — | Address |
| siteType | enum(commercial, residential, industrial, government, education, healthcare, retail, mixed_use) | Yes | — | Site type |
| occupancyProfile | enum(24_7, business_hours, extended_hours, seasonal, variable) | No | — | Occupancy profile |
| serviceInstructions | string | No | — | Service instructions |
| accessInstructions | string | No | — | Access instructions |
| hazardsNotes | string | No | — | Hazards notes |
| customerSiteManagerContactId | string | No | — | ID of the associated customer site manager contact |
| activeContractIds | string[] | Yes | [] | Active contract ids |
| siteHealthScore | number | No | — | Site health score |
| workspaceId | string | No | — | ID of the associated workspace |
| visibilityMode | enum(global, workspace_local, shared) | Yes | "workspace_local" | Visibility mode |
Example
{
"customerId": "550e8400-e29b-41d4-a716-446655440000",
"siteName": "example",
"address": null,
"siteType": "commercial",
"occupancyProfile": "24_7",
"serviceInstructions": "example",
"activeContractIds": [],
"visibilityMode": "global"
}