Space Docs
API ReferenceDeficiency Report

deficiencyReport.create

Type: Mutation · Auth: Workspace-aware

Input

FieldTypeRequiredDefaultDescription
workspaceIdstringNo—ID of the associated workspace
siteIdstringYes—ID of the associated site
workOrderIdstringNo—ID of the associated work order
workPackageIdstringNo—ID of the associated work package
inspectionDatestring.date-timeYes—Inspection date
inspectorIdstringYes—ID of the associated inspector
reportStatusenum(draft, submitted, reviewed, closed)Yes"draft"Report status
deficiencyCountintegerYes—Deficiency count
summarystringYes—Summary
findingsunknownYes[]Findings
remediationQuoteIdstringNo—ID of the associated remediation quote
remediationWorkOrderIdstringNo—ID of the associated remediation work order
reviewedBystringNo—Reviewed by
reviewedAtstring.date-timeNo—Reviewed at
notesstringNo—Notes
visibilityModeunknownNo—Visibility mode

Example

{
  "workspaceId": "550e8400-e29b-41d4-a716-446655440000",
  "siteId": "550e8400-e29b-41d4-a716-446655440000",
  "workOrderId": "550e8400-e29b-41d4-a716-446655440000",
  "workPackageId": "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": []
}

On this page