Copies an existing version into a new version with the provided name.
Security
basicAuth
- US Mailgunhttps://api.mailgun.net/v3/{domain_name}/templates/{template_name}/versions/{version_name}/copy/{new_version_name}
- EU Mailgunhttps://api.eu.mailgun.net/v3/{domain_name}/templates/{template_name}/versions/{version_name}/copy/{new_version_name}
curl -i -X PUT \
-u '<username>:<password>' \
'https://api.mailgun.net/v3/{domain_name}/templates/{template_name}/versions/{version_name}/copy/{new_version_name}?comment=string'Response
{ "message": "version has been copied", "version": { "tag": "cloned version", "template": "<p>{{firstname}} {{lastname}}</p>", "createdAt": "Fri, 21 Mar 2025 15:00:44 UTC", "comment": "a comment value from copy", "id": "95658c55-e93a-40d5-a02f-a4fadfbbb3ca" } }