---
title: "Update template"
method: POST
path: "/template/update"
tags: ["Template"]
deprecated: true
---

# Update template

`POST /template/update`

> **Deprecated.**

Deprecated: this endpoint is being replaced by the Envelope API. See https://docs.documenso.com/docs/developers/api/migrate-to-envelopes for the migration guide.

## Request body

- object
  - `templateId` number, required
  - `data` object
    - `title` string
    - `externalId` string, nullable
    - `visibility` 'EVERYONE' | 'MANAGER_AND_ABOVE' | 'ADMIN'
    - `globalAccessAuth` string[]
    - `globalActionAuth` string[]
    - `publicTitle` string
    - `publicDescription` string
    - `type` 'PUBLIC' | 'PRIVATE' | 'ORGANISATION'
    - `useLegacyFieldInsertion` boolean
    - `folderId` string, nullable
  - `meta` object
    - `subject` string
    - `message` string
    - `timezone` string
    - `dateFormat` 'yyyy-MM-dd hh:mm a' | 'yyyy-MM-dd' | 'dd/MM/yyyy' | 'dd-MM-yyyy' | 'MM/dd/yyyy' | 'yy-MM-dd' | 'MMMM dd, yyyy' | 'EEEE, MMMM dd, yyyy' | 'dd/MM/yyyy hh:mm a' | 'dd/MM/yyyy HH:mm' | 'dd-MM-yyyy hh:mm a' | 'dd-MM-yyyy HH:mm' | 'MM/dd/yyyy hh:mm a' | 'MM/dd/yyyy HH:mm' | 'dd.MM.yyyy' | 'dd.MM.yyyy HH:mm' | 'yyyy-MM-dd HH:mm' | 'yy-MM-dd hh:mm a' | 'yy-MM-dd HH:mm' | 'yyyy-MM-dd HH:mm:ss' | 'MMMM dd, yyyy hh:mm a' | 'MMMM dd, yyyy HH:mm' | 'EEEE, MMMM dd, yyyy hh:mm a' | 'EEEE, MMMM dd, yyyy HH:mm' | 'yyyy-MM-dd'T'HH:mm:ss.SSSXXX'
    - `distributionMethod` 'EMAIL' | 'NONE'
    - `emailId` string, nullable
    - `emailReplyTo` string, nullable
    - `emailSettings` object
      - `recipientSigningRequest` boolean
      - `recipientRemoved` boolean
      - `recipientSigned` boolean
      - `documentPending` boolean
      - `documentCompleted` boolean
      - `documentDeleted` boolean
      - `ownerDocumentCompleted` boolean
      - `ownerRecipientExpired` boolean
      - `ownerDocumentCreated` boolean
    - `redirectUrl` string
    - `language` 'de' | 'en' | 'fr' | 'es' | 'it' | 'nl' | 'pl' | 'pt-BR' | 'ja' | 'ko' | 'zh'
    - `typedSignatureEnabled` boolean
    - `uploadSignatureEnabled` boolean
    - `drawSignatureEnabled` boolean
    - `signingOrder` 'PARALLEL' | 'SEQUENTIAL'
    - `allowDictateNextSigner` boolean

## Response `200`

Successful response

- object
  - `type` 'PUBLIC' | 'PRIVATE' | 'ORGANISATION', required
  - `visibility` 'EVERYONE' | 'MANAGER_AND_ABOVE' | 'ADMIN', required
  - `id` number, required
  - `externalId` string, nullable, required
  - `title` string, required
  - `userId` number, required
  - `teamId` number, required
  - `authOptions` object, nullable, required
    - `globalAccessAuth` string[], required
    - `globalActionAuth` string[], required
  - `createdAt` string, required
  - `updatedAt` string, required
  - `publicTitle` string, required
  - `publicDescription` string, required
  - `folderId` string, nullable, required
  - `useLegacyFieldInsertion` boolean, required
  - `envelopeId` string, required
  - `templateDocumentDataId` string, required

## Other responses

- `400` — Invalid input data
- `401` — Authorization not provided
- `403` — Insufficient access
- `500` — Internal server error

---

[API](https://skmtc.net/documenso/apis/documenso-v2-api.md) · [All operations](https://skmtc.net/documenso/apis/documenso-v2-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/documenso/documenso-v2-api/revisions/3db245102197/schema)
