This method copies existing templates of the project into one of its template 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 templates created through the API. To rename copies, use Update name,
subject and preheader of templates.
- Up to 100 ids in one request. All copies go to the same folder; without
folderIdthey 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 a template 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 a template of another project
or one deleted while the copy waited for its turn), a draft (DRAFT), a translated version (TRANSLATION_VERSION),
passed more than once (DUPLICATE_ID) or a premium template the plan has no access to (PREMIUM_TEMPLATE). The
copy is all or nothing: if it fails, no copy is kept and the status is FAILED.
400The request is invalid (no ids, more than 100 ids, a folder not found among the template folders of the project); nothing is copied
403The plan has no room for every copy; nothing is copied
409Some of the templates or the folder are being changed by another bulk operation right now; nothing is copied, repeat the request later
