update-template
Modify existing email templates in Mailtrap Email Sending by updating subject lines, HTML content, plain text versions, names, or categories for transactional emails.
Instructions
Update an existing email template
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"template_id": "<template_id>"
},
"name": "update-template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| template_id | Yes | ID of the template to update | |
| name | No | New name for the template | |
| subject | No | New email subject line | |
| html | No | New HTML content of the template | |
| text | No | New plain text version of the template | |
| category | No | New category for the template |