Templates
Update a template
PATCH/v1/templates/{id}requires template:write
Changing the body cuts a new revision.
Requestcurl -X PATCH https://api.transmit.dev/v1/templates/{id} \
-H "Authorization: Bearer tr_v2_…" \
-H "Content-Type: application/json" \
-d '{}'Parameters
| Name | In | Notes |
|---|---|---|
id required | path | The template id. |
Body
| Field | Type | Notes |
|---|---|---|
friendly_name | string | 1–100 characters. matches ^[a-z0-9][a-z0-9_-]*$ |
name | string | 1–200 characters |
subject | string | 1–998 characters |
html | string or null | |
text | string or null | |
variables | object |
Responses
| Status | Meaning |
|---|---|
200 | The updated template |
401 | The API key is missing, malformed, expired or revoked |
403 | The API key lacks the template:write scope |
404 | No such template |
Every response body is described in the OpenAPI spec, which this page is generated from.