Skip to Content

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).

destructiveSends, cancels or emails people. Clients ask you before running it.

What it does

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

NameTypeDescription
template_idrequiredstringA saved template's template_id from list_templates (kind saved).Up to 64 characters
expected_base_versionrequiredinteger | nullThe template's current version before this finalise (current_version); null when it has none yet.At least 1
notestring | nullWhat changed, shown in the version history.Up to 2000 characters

Call it

Your MCP client builds this request for you. This is what it sends to https://appliflo.com/api/mcp, with the required inputs filled with placeholders.

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "finalise_template",
    "arguments": {
      "template_id": "<template_id>",
      "expected_base_version": 1
    }
  }
}

Input schema

The JSON Schema the server lists for this tool in tools/list.

{
  "type": "object",
  "properties": {
    "template_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 64,
      "description": "A saved template's template_id from list_templates (kind saved)."
    },
    "expected_base_version": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 1,
      "description": "The template's current version before this finalise (current_version); null when it has none yet."
    },
    "note": {
      "type": [
        "string",
        "null"
      ],
      "maxLength": 2000,
      "description": "What changed, shown in the version history."
    }
  },
  "required": [
    "template_id",
    "expected_base_version"
  ],
  "additionalProperties": false
}

On this page