Create Draft Form
Validation rules:
- name: required|string|max:255
- description: nullable|string
- display_on: required|in:office,technician,both
- assigned_to_type: required|in:work_order,work_order_assignment,customer,customer_location,equipment,workforce_personnel
- type: nullable|in:native,pdf (cannot be changed after creation)
- source: sometimes|in:manual,imported
- allow_multiple_submissions: sometimes|boolean
- show_business_unit_logo: sometimes|boolean
- allow_email_when_unfilled: sometimes|boolean
- auto_email_on_completion: sometimes|boolean
- layout: sometimes|in:one_column,two_column
- business_unit_ids: sometimes|array of existing tenant_location IDs
Headers
{{tenant_key_name}}
Request
This endpoint expects a multipart form.
name
Required: string, max:255 - Form template name
type
Optional: enum(native|pdf) - Form type (cannot be changed after creation)
layout
Optional: enum(one_column|two_column) - Form layout style
source
Optional: enum(manual|imported) - Source of the form template
display_on
Required: enum(office|technician|both) - Where form is shown
description
Optional: string|null - Form description
assigned_to_type
Required: enum(work_order|work_order_assignment|customer|customer_location|equipment|workforce_personnel) - Assigned entity type
show_business_unit_logo
Optional: boolean - Show business unit logo on form
auto_email_on_completion
Optional: boolean - Automatically send email when form is completed
allow_email_when_unfilled
Optional: boolean - Allow email to be sent when form is unfilled
allow_multiple_submissions
Optional: boolean - Allow multiple submissions per entity
Response
Successful response

