Templates
Update a template
Change the draft. Only the fields you send change. Sends keep using the published version until you publish again. Pass expected_updated_at to refuse the change if someone else edited the template since you loaded it. Requires the email:send scope.
patch/v1/templates/{id}
Request
- Base URL: https://smtpfa.st/api
- URL: https://smtpfa.st/api/v1/templates/{id}
- Auth: HTTP bearer
Path parameters
idstring required
The template id or alias
Request body
Example request
{
"name": "order-confirmation",
"alias": "order-confirmation",
"from": "Acme <orders@acme.com>",
"subject": "Your order {{{ORDER_ID}}}",
"variables": [
{
"id": "e169aa45-1ecf-4183-9955-b1499d5701d3",
"key": "PRODUCT"
}
]
}Response
Draft updated
Example response
{
"id": "clx_tpl123",
"object": "template"
}Changes
No recorded changes to this operation across all 1 revision of this API.