API referenceTemplates
Update a template's name, description, or variables
PATCH
Renames, re-describes, or changes the variable contract of a template. The alias is immutable — live integrations send against it. Omitted fields keep their current values.
bearerAuthheader
AuthorizationBearer <token>API key sent as Authorization: Bearer <key>. Looked up by SHA-256
hash (email_core::sha256_hex) against api_keys.hash; revoked
keys and keys belonging to a suspended tenant are rejected. See the
top-level Authentication section for permission levels.
alias*stringapplication/json- body
name?stringMust not be blank when present.
description?stringvariables?array<>sample?unknownModel previewTemplate uses when it is given none.
strict_vars?booleanWhen true, a send missing a required variable is rejected.
The updated template.
application/json- response
template?variables?array<>curl -X PATCH 'https://api.emitd.com/v1/templates/string' \ -H 'Content-Type: application/json' \ -d '{}'Example Response
{ "template": { "id": "string", "alias": "string", "name": "string", "created_at": 0, "updated_at": 0 }, "variables": [ { "name": "string", "type": "text", "required": true, "sample": "string", "description": "string" } ]}