API ReferenceDeficiency Report
deficiencyReport.create
Type: Mutation · Auth: Workspace-aware
Input
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| workspaceId | string | No | — | ID of the associated workspace |
| siteId | string | Yes | — | ID of the associated site |
| workOrderId | string | No | — | ID of the associated work order |
| inspectionDate | string.date-time | Yes | — | Inspection date |
| inspectorId | string | Yes | — | ID of the associated inspector |
| reportStatus | enum(draft, submitted, reviewed, closed) | Yes | "draft" | Report status |
| deficiencyCount | integer | Yes | — | Deficiency count |
| summary | string | Yes | — | Summary |
| findings | unknown | Yes | [] | Findings |
| remediationQuoteId | string | No | — | ID of the associated remediation quote |
| remediationWorkOrderId | string | No | — | ID of the associated remediation work order |
| reviewedBy | string | No | — | Reviewed by |
| reviewedAt | string.date-time | No | — | Reviewed at |
| notes | string | No | — | Notes |
| visibilityMode | enum(global, workspace_local, shared) | Yes | "workspace_local" | Visibility mode |
Example
{
"workspaceId": "550e8400-e29b-41d4-a716-446655440000",
"siteId": "550e8400-e29b-41d4-a716-446655440000",
"workOrderId": "550e8400-e29b-41d4-a716-446655440000",
"inspectionDate": "2024-01-15T09:00:00.000Z",
"inspectorId": "550e8400-e29b-41d4-a716-446655440000",
"reportStatus": "draft",
"deficiencyCount": 0,
"summary": "example",
"findings": [],
"visibilityMode": "global"
}