Create a form template

POST/app/v1/form-template/

Form templates — the forms a company builds for people to fill in.

Full create / read / update / delete, plus publish and unpublish. A template starts as a draft and nobody can fill it in until it is published. Deleting is always allowed: every submission keeps its own frozen copy of the questions, so filled forms are never affected.

Authorization

X-API-KEYstring · headerrequired

Your company's API key.

Request body

application/json · required

namestringrequired
definitionany

Sections, each with ordered blocks. A block is either a field (type: text, number, date, yes_no, radio, select, multiselect, signature, photo, driver, vehicle, trailer) or content (type: instructions). See the dashboard's form builder for the exact shape; anything malformed is rejected with a clear message.

require_approvalsboolean
access_modeenum

One of: none all specific tags

access_membersarray of integer
access_tagsarray of integer
is_activeboolean
created_byinteger

Response

200The record
idstring (uuid)
namestring
definitionany

Sections, each with ordered blocks. A block is either a field (type: text, number, date, yes_no, radio, select, multiselect, signature, photo, driver, vehicle, trailer) or content (type: instructions). See the dashboard's form builder for the exact shape; anything malformed is rejected with a clear message.

statusenum

One of: draft published

published_atstring (date-time)
require_approvalsboolean
access_modeenum

One of: none all specific tags

access_membersarray of integer
access_tagsarray of integer
is_activeboolean
created_byinteger
created_atstring (date-time)
updated_atstring (date-time)