Skip to content

Update template

Request

Update the description of a template.

Security
basicAuth
Path
domain_namestringrequired

Domain name the template is associated with.

template_namestringrequired

The template name.

Bodymultipart/form-datarequired
descriptionstringrequired

Update description of the template being updated.

curl -i -X PUT \
  -u '<username>:<password>' \
  'https://api.mailgun.net/v3/{domain_name}/templates/{template_name}' \
  -H 'Content-Type: multipart/form-data' \
  -F description=string

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 updated", "template": { "name": "template_name" } }