# save_doc_as_template

> Keep a Doc as one of the workspace's doc templates, as the app's "Save as template": its content, roles and settings (not a PDF).

Tool of the AppliFlo MCP server at `https://appliflo.com/api/mcp`. Kind: asks first: it changes something in your workspace, so clients ask you first.

Keep a Doc as one of the workspace's doc templates, as the app's "Save as template": its content, roles and settings (not a PDF). A new template named `name` (default: the doc's title), or with template_id, a new version of a doc template saved from this doc before (owners and admins only). create_doc with doc_template_id starts a Doc from it. Returns template_id, name, version and created. For an uploaded PDF use save_as_template.

## Inputs

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `doc_id` | string | yes | A Doc's doc_id (from list_docs, or list_documents' kind 'doc' rows). Up to 80 characters |
| `name` | string | no | The new template's name. Defaults to the doc's title. Up to 120 characters |
| `template_id` | string | no | Save as the next version of this doc template instead. Up to 80 characters |
