ZRM Docs
API ReferenceDocument

document.create

Type: Mutation · Auth: Workspace-aware

Input

FieldTypeRequiredDefaultDescription
customerIdstringNoID of the associated customer
vendorIdstringNoID of the associated vendor
siteIdstringNoID of the associated site
relatedEntityTypestringNoRelated entity type
relatedEntityIdstringNoID of the associated related entity
documentTypeenum(proposal, contract, drawing, as_built, submittal, report, invoice, photo_set, configuration, certificate, permit, product_manual, other)YesDocument type
filenamestringYesFilename
objectStorageKeystringYesObject storage key
mimeTypestringNoMime type
uploadedByUserIdstringNoID of the associated uploaded by user
documentDatestring.date-timeNoDocument date
versionintegerYes1Version
extractionStatusenum(pending, processing, completed, failed, not_applicable)Yes"pending"Extraction status
aiSummarystringNoAi summary
classificationTagsstring[]NoClassification tags
workspaceIdstringNoID of the associated workspace
visibilityModeenum(global, workspace_local, shared)Yes"workspace_local"Visibility mode

Example

{
  "customerId": "550e8400-e29b-41d4-a716-446655440000",
  "vendorId": "550e8400-e29b-41d4-a716-446655440000",
  "siteId": "550e8400-e29b-41d4-a716-446655440000",
  "relatedEntityType": "example",
  "relatedEntityId": "550e8400-e29b-41d4-a716-446655440000",
  "documentType": "proposal",
  "filename": "example",
  "objectStorageKey": "example",
  "version": 1,
  "extractionStatus": "pending",
  "visibilityMode": "global"
}

On this page