---
title: "PUT /v2.1/accounts/{accountId}/templates"
method: PUT
path: "/v2.1/accounts/{accountId}/templates"
tags: ["Templates"]
---

# PUT /v2.1/accounts/{accountId}/templates

`PUT /v2.1/accounts/{accountId}/templates`

## Request

- Base URL: `https://www.docusign.net/restapi`
- URL: `https://www.docusign.net/restapi/v2.1/accounts/{accountId}/templates`
- Auth: none declared

## Path parameters

- `accountId` string, required

## Request body

- TemplateAutoMatchList
  - `templates` TemplateAutoMatch[]: An array of `templateSummary` objects that contain information about templates.
    - `autoMatch` string: By default, templates that have been used within the last 60 days are included in auto-matching. By explicitly setting `autoMatch`, you can permanently include or exclude the template in auto matching. When **true** the template is included in auto-matching regardless of when it was last used. When **false** the template is never included in auto-matching.
    - `errorDetails` ErrorDetails: This object describes errors that occur. It is only valid for responses and ignored in requests.
      - `errorCode` string: The code associated with the error condition.
      - `message` string: A brief message describing the error condition.
    - `templateId` string: The ID of the template.

## Response `200`

Successful response.

## Other responses

- `400`: Error encountered.

## Changes

- **2025-02-06** (v2) `b711dec2cead`: 1 info
  - endpoint added
- **2019-07-18** (v2) `8ad1b5a40f1b`: 1 breaking
  - api removed without deprecation

[Operation history](https://skmtc.dev/docusign/apis/docusign-esignature-rest-api/changes/v2.1/accounts/:accountId/templates/put.md)

---

[API](https://skmtc.dev/docusign/apis/docusign-esignature-rest-api.md) - [All operations](https://skmtc.dev/docusign/apis/docusign-esignature-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/docusign/apis/docusign-esignature-rest-api/revisions/77f1998c313d?raw)
