Copy emails into a folder

This method copies existing emails of the project into one of its email folders. The originals do not change.
A copy keeps the content, the subject, the preheader and the language of its original; its language versions are
copied along with it. A copy keeps the name of its original, as a copy made in Stripo does, also in the folder of the
original, and has no author, the same as emails created through the API. To rename copies, use Update name,
subject and preheader of emails.

  • Up to 100 ids in one request. All copies go to the same folder; without folderId they go to the root of the project.
  • The plan limit is checked for all copies at once: if the plan has no room for every copy, none is made.
  • A copy takes the content saved at the moment of the request: unsaved changes of an email opened in the editor
    are not copied.

The copy runs in the background: the response carries an operationId, and the outcome is read with Get the status
of an operation within 15 minutes. result.copies tells which copy was made of which original; result.failed
lists the ids that were not copied: not found in the project (NOT_FOUND, also for an email of another project
or one deleted while the copy waited for its turn), a draft (DRAFT), a translated version (TRANSLATION_VERSION)
or passed more than once (DUPLICATE_ID). The
copy is all or nothing: if it fails, no copy is kept and the status is FAILED.

Body Params
ids
array of int64s
required
length between 1 and 100

IDs of the emails or templates to copy

ids*
int64

The folder the copies go to. Not passed — the root of the project

Headers
string

Authentication token

Responses

400

The request is invalid (no ids, more than 100 ids, a folder not found among the email folders of the project); nothing is copied

403

The plan has no room for every copy; nothing is copied

409

Some of the emails or the folder are being changed by another bulk operation right now; nothing is copied, repeat the request later

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json