Skip to navigation

Update an existing template

Updates the code for an existing template. If null is provided for any fields, the values will remain unchanged.

Request

This endpoint expects an object.
keystringRequired
A valid Mandrill API key
namestringRequired
Immutable name of an existing template
from_emailstring or nullOptionalformat: "email"
New default sending address
from_namestring or nullOptional
New default from name
subjectstring or nullOptional
New default subject line
codestring or nullOptional
New code for the template
textstring or nullOptional
New default text part to be used
publishbooleanOptionalDefaults to true
Set to false to update the draft version without publishing
labelslist of strings or nullOptional
Optional array of up to 10 labels to use for filtering templates

Response

Success

Errors

401
Unauthorized Error
404
Not Found Error
500
Internal Server Error