---
title: "POST /templates/update.json"
method: POST
path: "/templates/update.json"
---

# POST /templates/update.json

`POST /templates/update.json`

Update the code for an existing template. If null is provided for any fields, the values will remain unchanged.

## Request body

- Template
  - `code` string
  - `from_email` string
  - `from_name` string
  - `key` string
  - `labels` string[]
  - `name` string
  - `publish` boolean
  - `subject` string
  - `text` string

## Response `200`

OK

---

[API](https://skmtc.net/apis-guru/apis/mandrill.md) · [All operations](https://skmtc.net/apis-guru/apis/mandrill/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/apis-guru/mandrill/versions/28967a019827/schema)
