# finalise_template

> Finalise a saved template's draft as its next version, as the builder's Finalise: the draft's boxes, roles and settings become an unchangeable version with its own PDF copy, the template is Ready, and every send from now on uses it (envelopes already sent keep their version).

Tool of the AppliFlo MCP server at `https://appliflo.com/api/mcp`. Kind: destructive: it emails people or cancels a send, so clients ask you first.

Finalise a saved template's draft as its next version, as the builder's Finalise: the draft's boxes, roles and settings become an unchangeable version with its own PDF copy, the template is Ready, and every send from now on uses it (envelopes already sent keep their version). Pass expected_base_version = the current_version that update_template_settings or set_template_roles returned (null for a template never finalised): if someone else finalised meanwhile it is refused (409 version_conflict). A draft with blocking checklist issues (e.g. a box with no owner) is refused (422 not_ready, issues listed: fix them in the app's builder). A template with no draft open (e.g. straight after save_as_template) gets one first, as the builder's Set up does. Owners and admins only. Returns the new version in get_template_version's shape.

## Inputs

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `template_id` | string | yes | A saved template's template_id from list_templates (kind saved). Up to 64 characters |
| `expected_base_version` | integer \| null | yes | The template's current version before this finalise (current_version); null when it has none yet. At least 1 |
| `note` | string \| null | no | What changed, shown in the version history. Up to 2000 characters |
