Copy email
Make a draft copy of an existing email.
POST https://cotlet.dev/api/v1/constant-contact/emails/{email_id}/copy
write
Creates a draft with the same content as the source email, the way Copy on the email's Details tab does, and returns its email_id. It does not edit text or links, and it sends nothing. It reaches no one and the draft can be left unused, so it does not wait for your OK.
Parameters
| Name | Type | Description |
|---|---|---|
| email_id string required | string | Email ID of the email to copy, draft, scheduled or sent. |
| name string | string | Name of the copy. |
Request
curl -X POST https://cotlet.dev/api/v1/constant-contact/emails/email_8c41d2/copy \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("constant-contact", "copy_email", {"email_id":"email_8c41d2"}) const result = await cotlet.call('constant-contact', 'copy_email', {"email_id":"email_8c41d2"}); cotlet call constant-contact copy_email --data '{"email_id":"email_8c41d2"}' Example response
{
"email_id": "7b1e9c30-4d2a-4f86-9a15-c3e8d0b72f41",
"name": "Rent reminder, October",
"status": "draft"
}