---
title: "Update"
method: PUT
path: "/api/content/templates/{template_id}"
---

# Update

`PUT /api/content/templates/{template_id}`

## Request

- Base URL: `https://api.ascendkit.dev` (the document declares no server; this is the origin it was published from)
- URL: `https://api.ascendkit.dev/api/content/templates/{template_id}`
- Auth: API key in header `X-AscendKit-Public-Key` and HTTP bearer

## Path parameters

- `template_id` string, required

## Request body

- ContentTemplateUpdate
  - `subject` string, nullable
  - `bodyHtml` string, nullable
  - `bodyText` string, nullable
  - `changeNote` string, nullable
  - `category` 'transactional' | 'marketing', nullable

## Response `200`

Successful Response

- ApiResponse
  - `data` unknown
  - `error` string, nullable
  - `meta` object, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/ascendkit/apis/ascendkit-api.md) · [All operations](https://skmtc.dev/ascendkit/apis/ascendkit-api/llms.txt) · [OpenAPI document](https://skmtc.dev/ascendkit/apis/ascendkit-api/revisions/0a41c122c44f?raw)
