Skip to navigation

Create Draft Form

View as Markdown

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}}stringOptional

Request

This endpoint expects a multipart form.
namestringRequired

Required: string, max:255 - Form template name

typestringRequired

Optional: enum(native|pdf) - Form type (cannot be changed after creation)

layoutstringRequired

Optional: enum(one_column|two_column) - Form layout style

sourcestringRequired

Optional: enum(manual|imported) - Source of the form template

display_onstringRequired

Required: enum(office|technician|both) - Where form is shown

descriptionstringRequired

Optional: string|null - Form description

assigned_to_typestringRequired

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

auto_email_on_completionstringRequired

Optional: boolean - Automatically send email when form is completed

allow_email_when_unfilledstringRequired

Optional: boolean - Allow email to be sent when form is unfilled

allow_multiple_submissionsstringRequired

Optional: boolean - Allow multiple submissions per entity

Response

Successful response