---
title: "Save Draft As Template"
method: POST
path: "/api/v1/documents/drafts/{document_id}/save-as-template"
tags: ["v1", "documents"]
---

# Save Draft As Template

`POST /api/v1/documents/drafts/{document_id}/save-as-template`

## Request

- Base URL: `https://zsign.io` (the document declares no server; this is the origin it was published from)
- URL: `https://zsign.io/api/v1/documents/drafts/{document_id}/save-as-template`
- Auth: HTTP bearer

API-key twin of POST /api/documents/drafts/{id}/save-as-template.

Free. Copies the draft's current bytes and parsed_fields into a new
reusable template; the draft itself is left exactly as it was.

## Path parameters

- `document_id` string, uuid, required

## Request body

- SaveAsTemplateRequest: Body of POST /api/documents/drafts/{id}/save-as-template.
  - `name` string, required

## Response `201`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/zsign/apis/zsign-api.md) · [All operations](https://skmtc.dev/zsign/apis/zsign-api/llms.txt) · [OpenAPI document](https://skmtc.dev/zsign/apis/zsign-api/revisions/a674ac4137ba?raw)
