--- title: forms.saveTemplate | Doing Work API description: Create a form template (an inspection, a safety sheet, a start-up report), or replace one (give form_template_id). Fields are in order; types: heading. url: https://doingwork.work/docs/reference/forms-savetemplate/ --- # forms.saveTemplate Create a form template (an inspection, a safety sheet, a start-up report), or replace one (give form_template_id). Fields are in order; types: heading, text, long_text, number, yes_no, choice, multi_choice, date, photos. Forms already started keep their own copy. Owner or office. | | | |---|---| | Who | Agents can call this | | REST | `POST /v1/forms/templates` | | MCP tool | `forms_saveTemplate` | | Writes | yes, send an Idempotency-Key | | Area | [Field work (checklists, forms, time, notes, change orders, subcontractors)](https://doingwork.work/docs/reference/#field-work-checklists-forms-time-notes-change-orders-subcontractors) | ## When to use it Keep form templates (forms.saveTemplate: ordered fields of type heading, text, long_text, number, yes_no, choice, multi_choice, date or photos, each optionally required). Start a form on a job or one visit (forms.start) from a template, from an earlier form (copy_from_form_id, which also carries its answers), or with fields given on the spot; the form keeps its own copy of the fields. ## What to tell the owner Say what you did in plain words and what happens next. ## Input | Field | Type | Required | |---|---|---| | `shop_id` | string (uuid) | no | | `form_template_id` | string (uuid) | no | | `name` | string | yes | | `description` | string | no | | `fields` | array | yes | | `fields[].key` | string | yes | | `fields[].label` | string | yes | | `fields[].type` | string (one of heading, text, long_text, number, yes_no, choice, multi_choice, date, photos) | yes | | `fields[].required` | boolean | no | | `fields[].help` | string | no | | `fields[].options` | array | no | | `signoff_required` | boolean | no | ## Example ```http POST https://doingwork.work/v1/forms/templates content-type: application/json Idempotency-Key: 3f1c... { "name": "Ruiz Plumbing", "fields": [ { "key": "...", "label": "...", "type": "heading" } ] } ``` ## Output JSON. The response shape isn't published yet; read the fields you need and ignore the rest. Errors are `{code, message, status}`. ## Errors | Code | Status | What to do | |---|---|---| | `invalid_input`, `invalid_token`, `rate_limited` | | Can happen on any call. See [errors](https://doingwork.work/docs/errors/). |