Create Submission

View as Markdown
Validation rules: - submittable_type: required|in:work_order,work_order_assignment,customer,customer_location,equipment,workforce_personnel (must match form assigned_to_type) - submittable_id: required (UUID or numeric) - trigger_id: nullable (UUID or numeric) - notes: nullable|string - answers: array - answers.*.field_id: required_with:answers (UUID or numeric) - answers.*.value: nullable - answers.*.file_references: nullable|array

Headers

{{tenant_key_name}}stringOptional

Request

This endpoint expects a multipart form.
trigger_idstringRequired

UUID of the form trigger (optional)

submittable_idstringRequired
UUID of the work order or job
submittable_typestringRequired

Required: enum(work_order|work_order_assignment|customer|customer_location|equipment|workforce_personnel) - Target entity type

answers[0][value]stringRequired

Optional: mixed|null - Field value

answers[0][field_id]stringRequired
UUID of the form field

Response

Successful response