Update Work Order
Update an existing work order. This endpoint now handles both general field updates AND status changes.
Required Permission: update_work_orders
All fields are optional. Only send the fields you want to update.
Status Changes
You can now update the work order status through this endpoint by providing the status field along with any other fields you want to update.
Status-Related Fields
status- Enum: draft, pending_approval, approved, scheduled, dispatched, en_route, arrived, in_progress, on_hold, completed, cancelled, rescheduled, requires_parts, requires_approval, quality_check, invoiced, closednotes- string, max:1000 (activity log notes for status change)reason- string, max:500 (reason for status change)occurred_at- date (for backdating if authorized)
Conditional Required Fields (when changing status)
cancellation_reason- Required when status = cancelledhold_reason- Required when status = on_holdnew_scheduled_start- Required when status = rescheduled (datetime)
Additional Optional Fields for Status Changes
completion_summary- string (when completing)customer_signature_received- boolean (when completing)quality_check_passed- boolean (when completing)expected_resume_date- date (when on_hold)new_scheduled_end- datetime (when rescheduling)reschedule_reason- string, max:500 (when rescheduling)
Status Transitions
Not all status transitions are allowed. The system validates transitions based on the current status.
General Updatable Fields
customer_id- UUIDlocation_id- UUIDservice_id- UUID (links work order to a service from the service catalog)category- Enum: scheduled, emergency, warranty, contract, inspection, installation, repair, delivery, consultation, follow_up, recall, upgradepriority- Enum: low, normal, high, urgent, emergency, criticalsource- Enum: customer_request, scheduled_maintenance, emergency_call, contract, inspection, internal, warranty_claim, follow_up, system_generated, mobile_app, web_portal, call_centerscheduled_start- datetime (Y-m-d H:i:s)scheduled_end- datetime (Y-m-d H:i:s)requested_completion_by- datetimecompletion_percentage- integer, min:0, max:100work_started_at- datetimework_completed_at- datetimespecial_instructions- stringcompletion_summary- stringprimary_contact_id- UUIDcustomer_presence_required- booleancustomer_notification_sent- booleancustomer_notified_at- datetimepreferred_communication_methods- arrayestimated_labor_cost- numericestimated_parts_cost- numericactual_labor_cost- numeric, min:0actual_parts_cost- numeric, min:0customer_signature_required- booleancustomer_signature_received- booleancustomer_signed_at- datetimequality_check_required- booleanquality_check_passed- booleanquality_checked_by- UUIDquality_checked_at- datetimecustomer_satisfaction_score- integer, min:1, max:5customer_feedback- stringrequires_follow_up- booleanfollow_up_date- datefollow_up_completed- booleanwarranty_applicable- booleanwarranty_days- integerwarranty_expires_at- dateassigned_supervisor_id- UUIDexternal_work_order_id- stringcustomer_po_number- stringcontract_number- stringexternal_references- arrayresponse_time_minutes- integerresolution_time_minutes- integercompleted_on_time- booleancompleted_within_estimate- booleancallback_count- integerrequires_manager_approval- booleanapproved_by- UUIDapproved_at- datetimeapproval_notes- stringrisk_level- Enum: low, medium, high, criticalsafety_incident_occurred- booleansafety_requirements- arraypermit_required- booleanpermit_number- string
Auto-Calculated Fields (do not send these)
estimated_total- Automatically calculated from estimated_labor_cost + estimated_parts_costactual_total- Automatically calculated from actual_labor_cost + actual_parts_costactual_duration_minutes- Automatically calculated from work_started_at and work_completed_at
Headers
{{tenant_key_name}}
Request
This endpoint expects a multipart form.
tag_type_ids[]
Optional: Tag type UUIDs to sync during update
Response
Successful response

