Space Docs
API ReferenceWork Order

workOrder.create

Type: Mutation · Auth: Workspace-aware

Input

FieldTypeRequiredDefaultDescription
ticketIdunknownNo—ID of the associated ticket
projectIdunknownNo—ID of the associated project
pmScheduleIdunknownNo—ID of the associated pm schedule
customerIdstringYes—ID of the associated customer
siteIdstringYes—ID of the associated site
workTypeenum(service_call, installation, inspection, preventive_maintenance, emergency, other)Yes—Work type
serviceTypeIdunknownNo—ID of the associated service type
dispatchStatusenum(unscheduled, scheduled, dispatched, en_route, on_site, completed, canceled)Yes"unscheduled"Dispatch status
scheduledStartunknownNo—Scheduled start
scheduledEndunknownNo—Scheduled end
technicianUserIdsstring[]No—Technician 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
workSummaryunknownNo—Work summary
recommendedFollowupunknownNo—Recommended followup
priorityunknownNo"medium"Priority
estimatedLaborHoursunknownNo—Estimated labor hours
estimatedMaterialCostunknownNo—Estimated material cost
checkInAtunknownNo—Check in at
checkOutAtunknownNo—Check out at
gpsCheckInobjectNo—Gps check in
gpsCheckOutobjectNo—Gps check out
completionNotesunknownNo—Completion notes
followUpRequiredbooleanYesfalseFollow up required
isRevisitbooleanYesfalseIs revisit
requiredSkillsstring[]No—Required skills
workspaceIdstringNo—ID of the associated workspace
visibilityModeunknownNo—Visibility mode

Example

{
  "ticketId": null,
  "projectId": null,
  "pmScheduleId": null,
  "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
}

On this page