---
title: "Updates a template."
method: PUT
path: "/v2/templates/{id}"
tags: ["ApiTemplate"]
---

# Updates a template.

`PUT /v2/templates/{id}`

## Path parameters

- `id` integer, required

## Request body

- ApiTemplate
  - `id` integer
  - `name` string, required
  - `subject` string, required
  - `fromName` string, required
  - `htmlContent` string, required
  - `plainTextContent` string, required
  - `replyAction` 'Unset' | 'WebMailForward' | 'Webmail' | 'Delete' | 'NotAvailableInThisVersion'
  - `replyToAddress` string, nullable

## Response `200`

- ApiTemplate
  - `id` integer
  - `name` string, required
  - `subject` string, required
  - `fromName` string, required
  - `htmlContent` string, required
  - `plainTextContent` string, required
  - `replyAction` 'Unset' | 'WebMailForward' | 'Webmail' | 'Delete' | 'NotAvailableInThisVersion'
  - `replyToAddress` string, nullable

---

[API](https://skmtc.net/dotdigital/apis/apiconnector-com.md) · [All operations](https://skmtc.net/dotdigital/apis/apiconnector-com/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/dotdigital/apiconnector-com/revisions/109c0537cf77/schema)
