---
title: "Update a template"
method: PATCH
path: "/v1/templates/{id}"
tags: ["Templates"]
---

# Update a template

`PATCH /v1/templates/{id}`

## Request body

- object
  - `name` string
  - `subject` string
  - `html` string
  - `text_body` string
  - `variables` TemplateVariable[]
    - `name` string, required — Accessed via `{{data.name}}`.
    - `type` 'string' | 'number' | 'boolean' | 'date', required
    - `required` boolean
    - `default` unknown
    - `description` string

## Response `200`

Updated

---

[API](https://skmtc.net/shareout/apis/shareout-rest-api.md) · [All operations](https://skmtc.net/shareout/apis/shareout-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/shareout/shareout-rest-api/revisions/804359ead65a/schema)
