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

NameInNotes
id requiredpathThe template id.

Body

FieldTypeNotes
friendly_namestring1–100 characters. matches ^[a-z0-9][a-z0-9_-]*$
namestring1–200 characters
subjectstring1–998 characters
htmlstring or null
textstring or null
variablesobject

Responses

StatusMeaning
200The updated template
401The API key is missing, malformed, expired or revoked
403The API key lacks the template:write scope
404No such template

Every response body is described in the OpenAPI spec, which this page is generated from.