PUT /templates/:id
Update a template’s name, subject, or content. Variables are auto-detected from the updated content.Authentication
JWT Bearer token (dashboard auth)Request Body
| Field | Type | Required | Description |
|---|---|---|---|
name | string | No | New template name |
subject | string | No | New subject line |
html_content | string | No | New HTML content |
text_content | string | No | New text content |
Response
Errors
| Status | Error | Cause |
|---|---|---|
404 | Template not found | Invalid ID or not owned by user |
409 | Duplicate name | Another template with this name exists |