---
title: "Update a specific email template by its ID"
method: PUT
path: "/api/v1/template/{id}"
tags: ["email_template"]
---

# Update a specific email template by its ID

`PUT /api/v1/template/{id}`

## Path parameters

- `id` string, required

## Request body

- object
  - `name` string, required
  - `body` string, required

## Response `200`

Template successfully updated

- object
  - `status` string
  - `status_code` integer
  - `message` string
  - `data` object
    - `id` string
    - `name` string
    - `body` string
    - `created_at` string, date-time
    - `updated_at` string, date-time

## Other responses

- `401` — Unauthorized
- `404` — Template not found
- `422` — Validation failed

---

[API](https://skmtc.net/hngprojects/apis/kimiko-golang-swagger.md) · [All operations](https://skmtc.net/hngprojects/apis/kimiko-golang-swagger/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hngprojects/kimiko-golang-swagger/revisions/2d1d3ed96bb9/schema)
