ZRM Docs
API ReferenceWork Order

workOrder.create

Type: Mutation · Auth: Workspace-aware

Input

FieldTypeRequiredDefaultDescription
ticketIdstringNoID of the associated ticket
projectIdstringNoID of the associated project
pmScheduleIdstringNoID of the associated pm schedule
customerIdstringYesID of the associated customer
siteIdstringYesID of the associated site
workTypeenum(service_call, installation, inspection, preventive_maintenance, emergency, other)YesWork type
dispatchStatusenum(unscheduled, scheduled, dispatched, en_route, on_site, completed, canceled)Yes"unscheduled"Dispatch status
scheduledStartstring.date-timeNoScheduled start
scheduledEndstring.date-timeNoScheduled end
technicianUserIdsstring[]NoTechnician user ids
billableStatusenum(not_billable, billable, invoiced)Yes"not_billable"Billable status
laborStatusenum(not_started, in_progress, completed)Yes"not_started"Labor status
materialsStatusenum(none_needed, pending, fulfilled)Yes"none_needed"Materials status
customerSignoffStatusenum(not_required, pending, signed, disputed)Yes"not_required"Customer signoff status
workSummarystringNoWork summary
recommendedFollowupstringNoRecommended followup
priorityenum(low, medium, high, critical)No"medium"Priority
estimatedLaborHoursnumberNoEstimated labor hours
estimatedMaterialCostnumberNoEstimated material cost
checkInAtstring.date-timeNoCheck in at
checkOutAtstring.date-timeNoCheck out at
gpsCheckInobjectNoGps check in
gpsCheckOutobjectNoGps check out
completionNotesstringNoCompletion notes
followUpRequiredbooleanYesfalseFollow up required
isRevisitbooleanYesfalseIs revisit
requiredSkillsstring[]NoRequired skills
workspaceIdstringNoID of the associated workspace
visibilityModeenum(global, workspace_local, shared)Yes"workspace_local"Visibility mode

Example

{
  "ticketId": "550e8400-e29b-41d4-a716-446655440000",
  "projectId": "550e8400-e29b-41d4-a716-446655440000",
  "pmScheduleId": "550e8400-e29b-41d4-a716-446655440000",
  "customerId": "550e8400-e29b-41d4-a716-446655440000",
  "siteId": "550e8400-e29b-41d4-a716-446655440000",
  "workType": "service_call",
  "dispatchStatus": "unscheduled",
  "billableStatus": "not_billable",
  "laborStatus": "not_started",
  "materialsStatus": "none_needed",
  "customerSignoffStatus": "not_required",
  "followUpRequired": false,
  "isRevisit": false,
  "visibilityMode": "global"
}

On this page