Move templates into a folder

This method moves existing templates of the project into one of its template folders. Only the folder changes: the
content, the name and the rest of the template stay as they are, and so does its address in Stripo. The language
versions of a template are moved along with it.

  • Up to 100 ids in one request. All templates go to the same folder; without folderId they go to the root of the project.
  • A template opened in the editor is moved too: the editor keeps working with it.
  • A template that already lies in the folder is reported as moved; nothing changes for it.

The move 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.moved lists the moved ids; result.failed lists the ids that were not
moved: not found in the project (NOT_FOUND, also for a template of another project or one deleted while the
move waited for its turn), a draft (DRAFT), a translated version (TRANSLATION_VERSION — move its original
instead) or passed more than once (DUPLICATE_ID). The move is all or nothing: if it fails, every template stays
where it was and the status is FAILED.

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

IDs of the emails or templates to move

ids*
int64

The folder the emails or templates are moved 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 template folders of the project); nothing is moved

409

Some of the templates or the folder are being changed by another bulk operation right now; nothing is moved, 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