Skip to content

Rename a template

Request

Renames the specified template

Security
basicAuth
Path
domain_namestringrequired

Domain name the template is associated with.

template_namestringrequired

The current name of the template.

new_template_namestringrequired

The name for the new template.

curl -i -X PUT \
  -u '<username>:<password>' \
  'https://api.mailgun.net/v3/{domain_name}/templates/{template_name}/rename/{new_template_name}'

Responses

A 200 response

Bodyapplication/json
messagestringrequired

Response message

templateobject(github.com-mailgun-temple-httpapi-templateUpdate)required

Template change details

Response
{ "message": "Template has been renamed", "template": { "name": "new-template-name" } }